Skip to content

Commit

Permalink
Experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
marcobebway committed Sep 9, 2024
1 parent 28847b5 commit af1e8e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/shell/clean_up_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."
Expand Down

0 comments on commit af1e8e4

Please sign in to comment.