From 0ac5fcd9ff31518111e1e968607229fd5cc793fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Golicz?= Date: Fri, 26 Jan 2024 17:33:18 +0100 Subject: [PATCH] adding some debug messages --- images/cleaner/cleaner.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/images/cleaner/cleaner.sh b/images/cleaner/cleaner.sh index 8cd0fc6..9c8df72 100755 --- a/images/cleaner/cleaner.sh +++ b/images/cleaner/cleaner.sh @@ -25,7 +25,7 @@ kubectl delete clusterrolebinding -n kyma-system connectivity-proxy-restart-watc kubectl delete serviceaccount -n kyma-system connectivity-proxy-sm-operator --ignore-not-found kubectl delete clusterrole -n kyma-system connectivity-proxy-service-mappings --ignore-not-found -kubectl delete clusterrolebinding -n kyma-system connectivity-proxy-service-mappings --ignore-not-found +kubectl delete clusterrolebinding onnectivity-proxy-service-mappings --ignore-not-found kubectl delete mutatingwebhookconfiguration -n kyma-system connectivity-proxy-mutating-webhook-configuration --ignore-not-found echo "Removing all Connectivity Proxy ConfigMaps" @@ -36,18 +36,28 @@ kubectl delete configmap -n kyma-system connectivity-proxy-info --ignore-not-fou echo "Removing all Connectivity Proxy Istio resources" kubectl delete envoyfilter -n istio-system connectivity-proxy-custom-protocol --ignore-not-found -kubectl delete certificate -n istio-system cc-certs --ignore-not-found +echo "A" kubectl delete gateway -n kyma-system kyma-gateway-cc --ignore-not-found +echo "B" kubectl delete virtualservice -n kyma-system cc-proxy --ignore-not-found +echo "C" kubectl delete virtualservice -n kyma-system cc-proxy-healthcheck --ignore-not-found +echo "D" kubectl delete destinationrule -n kyma-system connectivity-proxy-tunnel-0 --ignore-not-found +echo "E" kubectl delete destinationrule -n kyma-system connectivity-proxy --ignore-not-found +echo "F" kubectl delete peerauthentication -n enable-permissive-mode-for-cp --ignore-not-found +echo "G" + +kubectl delete certificate -n istio-system cc-certs --ignore-not-found echo "Annotate all existing Connectivity Proxy Service Mappings" mappings=$(kubectl get servicemappings.connectivityproxy.sap.com -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}') +echo "H" + for mapping in $mappings; do echo "Applying annotations to service mapping $mapping"