stack-orchestrator/stack_orchestrator/deploy/k8s
Prathamesh Musale c7d2aaa0d0 so-l2l Part B: down() deletes by stack label, keeps namespace
Stop no longer calls _delete_namespace() on every down. Instead,
deletion is scoped by app.kubernetes.io/stack=<stack-name> so
multiple stacks sharing a namespace are torn down independently,
and no namespace termination race blocks a following up().

Prerequisite: every V1ObjectMeta created by cluster_info.py and
deploy_k8s.py now carries the stack label via a new
ClusterInfo._stack_labels() helper (Namespace, Ingress, Service,
Deployment pod template, ConfigMap, Secret, PVC, PV, Endpoints,
Job, CA certs secret, external-service Services).

down() order: Ingresses -> Deployments -> Jobs -> Services ->
ConfigMaps/Secrets/Endpoints -> lingering Pods, then PVCs/PVs
only when --delete-volumes is passed. Kind cluster destruction
still gated by --perform-cluster-management.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 13:17:13 +00:00
..
helm Fix pyright type errors across codebase 2026-01-22 01:10:36 -05:00
__init__.py Rename app -> stack_orchestrator (#625) 2023-11-07 00:06:55 -07:00
cluster_info.py so-l2l Part B: down() deletes by stack label, keeps namespace 2026-04-15 13:17:13 +00:00
deploy_k8s.py so-l2l Part B: down() deletes by stack label, keeps namespace 2026-04-15 13:17:13 +00:00
helpers.py Fix Kind port mappings and configmap source path resolution (#742) 2026-04-14 17:33:47 +05:30
k8s_command.py Apply pre-commit linting fixes 2026-01-21 20:58:31 -05:00