forked from cerc-io/stack-orchestrator
Each deployment now gets its own Kubernetes namespace (laconic-{deployment_id}).
This provides:
- Resource isolation between deployments on the same cluster
- Simplified cleanup: deleting the namespace cascades to all namespaced resources
- No orphaned resources possible when deployment IDs change
Changes:
- Set k8s_namespace based on deployment name in __init__
- Add _ensure_namespace() to create namespace before deploying resources
- Add _delete_namespace() for cleanup
- Simplify down() to just delete PVs (cluster-scoped) and the namespace
- Fix hardcoded "default" namespace in logs function
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| build | ||
| data | ||
| deploy | ||
| repos | ||
| __init__.py | ||
| __main__.py | ||
| base.py | ||
| command_types.py | ||
| constants.py | ||
| main.py | ||
| opts.py | ||
| update.py | ||
| util.py | ||
| version.py | ||