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> |
||
|---|---|---|
| .. | ||
| helm | ||
| __init__.py | ||
| cluster_info.py | ||
| deploy_k8s.py | ||
| helpers.py | ||
| k8s_command.py | ||