From af1e8e4827fee65cc3dd73de990e6397e35a1369 Mon Sep 17 00:00:00 2001 From: marcobebway Date: Mon, 9 Sep 2024 09:25:08 +0200 Subject: [PATCH] Experimental --- scripts/shell/clean_up_cluster.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/shell/clean_up_cluster.sh b/scripts/shell/clean_up_cluster.sh index e91589b5..6b374c3b 100755 --- a/scripts/shell/clean_up_cluster.sh +++ b/scripts/shell/clean_up_cluster.sh @@ -40,7 +40,7 @@ delete_kyma_modules() { echo "## Delete Istio ##" kubectl patch istios.operator.kyma-project.io -n kyma-system default -p '{"metadata":{"finalizers":null}}' --type=merge || true - kubectl delete --timeout=120s --wait=false --ignore-not-found peerauthentications.security.istio.io --all -A --force=true || true + kubectl delete --timeout=120s --wait=false --ignore-not-found peerauthentications.security.istio.io --all -A || true kubectl delete --timeout=120s --ignore-not-found -f https://github.com/kyma-project/istio/releases/latest/download/istio-default-cr.yaml || true kubectl delete --timeout=120s --wait=false --ignore-not-found -f https://github.com/kyma-project/istio/releases/latest/download/istio-manager.yaml || true kubectl label namespace kyma-system istio-injection- || true @@ -128,7 +128,7 @@ for namespace in $(kubectl get namespaces -o jsonpath='{.items[*].metadata.name} if ! is_excluded_namespace "$namespace"; then echo "## Cleaning up resources in namespace: $namespace. ##" echo "Deleting all resources." - kubectl delete all --all --ignore-not-found --force --namespace="$namespace" + kubectl delete all --all --ignore-not-found --now --namespace="$namespace" echo "Deleting all pvcs." kubectl delete pvc --all --ignore-not-found --now --namespace="$namespace" echo "Deleting all configmaps."