samples/bookinfo/kube/cleanup.sh
The above script will not delete virtualservices and gateways due to it is still getting routerules.
for rule in $(istioctl get -n ${NAMESPACE} routerules | grep -v 'No resources found'); do
istioctl delete -n ${NAMESPACE} routerule $rule;
done
The above script will not delete
virtualservicesandgatewaysdue to it is still gettingrouterules.