Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
adding some debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
koala7659 committed Jan 26, 2024
1 parent 7ea08e9 commit 0ac5fcd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions images/cleaner/cleaner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 0ac5fcd

Please sign in to comment.