We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7716ee5 commit c695d5aCopy full SHA for c695d5a
1 file changed
ops-scripts/local/shutdown-k8s.sh ops-scripts/local/spindown.shops-scripts/local/shutdown-k8s.sh renamed to ops-scripts/local/spindown.sh
@@ -17,10 +17,16 @@ echo "Uninstalling Helm release..."
17
helm uninstall "$RELEASE" -n "$TENANT" || echo "Helm release not found."
18
19
echo "🧹 Deleting TENANT '$TENANT'..."
20
-kubectl delete TENANT "$TENANT" || echo "TENANT not found."
+kubectl delete namespace "$TENANT" || echo "namespace not found."
21
+kubectl delete namespace "$TENANT-agents" || echo "namespace not found."
22
23
echo "⏳ Waiting for TENANT deletion to complete..."
-while kubectl get TENANT "$TENANT" &> /dev/null; do
24
+while kubectl get namespace "$TENANT" &> /dev/null; do
25
+ echo " ... still deleting ..."
26
+ sleep 2
27
+done
28
+
29
+while kubectl get namespace "$TENANT-agents" &> /dev/null; do
30
echo " ... still deleting ..."
31
sleep 2
32
done
0 commit comments