stack-orchestrator/stack_orchestrator
Prathamesh Musale 2f99e6f7c9 so-l2l: clean orphan PVs when namespace is already gone
down() used to early-return when read_namespace returned 404,
skipping all cleanup. That left cluster-scoped PVs orphaned
after a prior 'stop --delete-namespace' (namespace cascades
delete PVCs, but PVs with Retain reclaim policy survive).

Split _delete_labeled_resources into namespaced and cluster-
scoped phases via a namespace_present flag. When the namespace
is missing, jump straight to _delete_labeled_pvs (for
--delete-volumes) and the cluster-scoped half of the wait.
_wait_for_labeled_deletions now builds its lister set based on
whether the namespace still exists.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 06:08:32 +00:00
..
build Apply pre-commit linting fixes 2026-01-21 20:58:31 -05:00
data merge upstream: resolve test-k8s-deploy.yml conflict, add workflow_call 2026-04-02 05:30:14 +00:00
deploy so-l2l: clean orphan PVs when namespace is already gone 2026-04-16 06:08:32 +00:00
repos 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
__main__.py Rename app -> stack_orchestrator (#625) 2023-11-07 00:06:55 -07:00
base.py Fix pyright type errors across codebase 2026-01-22 01:10:36 -05:00
command_types.py Rename app -> stack_orchestrator (#625) 2023-11-07 00:06:55 -07:00
constants.py Merge wd-a7b: cluster-id/namespace naming, jobs, multi-cert, secrets 2026-04-01 18:22:07 +00:00
ids.py fix: black formatting, line length, pyright type narrowing 2026-04-02 05:22:25 +00:00
main.py Apply pre-commit linting fixes 2026-01-21 20:58:31 -05:00
opts.py Fix pyright type errors across codebase 2026-01-22 01:10:36 -05:00
update.py Apply pre-commit linting fixes 2026-01-21 20:58:31 -05:00
util.py Add Job and secrets support for k8s-kind deployments (#995) 2026-03-11 03:56:21 +00:00
version.py Apply pre-commit linting fixes 2026-01-21 20:58:31 -05:00