This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "====== Cleaning" | |
kubectl -n istio-operator get IstioControlPlane example-istiocontrolplane -o=json | jq '.metadata.finalizers = null' | kubectl delete -f - | |
kubectl -n istio-operator get IstioControlPlane managed-istiocontrolplane -o=json | jq '.metadata.finalizers = null' | kubectl delete -f - | |
sleep 60 | |
kubectl delete ns istio-operator --grace-period=0 --force | |
kubectl delete ns istio-system --grace-period=0 --force | |
sleep 30 | |
echo "====== Installing Operator" | |
kubectl apply -f https://istio.io/operator.yaml |