Remove explicit webhookconfig deletion steps (#12285)

* Remove explicit webhookconfig deletion steps

Signed-off-by: Faseela K <faseela.k@est.tech>

* Incorporate review comments

Signed-off-by: Faseela K <faseela.k@est.tech>

Signed-off-by: Faseela K <faseela.k@est.tech>
This commit is contained in:
Faseela K 2022-11-23 20:15:23 +01:00 committed by GitHub
parent d9079cb642
commit ebad273a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 7 deletions

View File

@ -20,9 +20,6 @@ set -o pipefail
# @setup profile=none
# Delete a vailidatingwebhookconfiguration that seems to have been left around from a prior test.
kubectl delete validatingwebhookconfigurations.admissionregistration.k8s.io istiod-default-validator --ignore-not-found
snip_create_istio_system_namespace
_rewrite_helm_repo snip_install_base

View File

@ -479,7 +479,7 @@ To uninstall Istio, run the following command:
{{< text bash >}}
$ kubectl delete -n istio-system -f @samples/multicluster/expose-istiod.yaml@
$ istioctl manifest generate | kubectl delete -f -
$ istioctl uninstall -y --purge
{{< /text >}}
The control plane namespace (e.g., `istio-system`) is not removed by default.

View File

@ -244,7 +244,7 @@ sudo rpm -e istio-sidecar
snip_uninstall_4() {
kubectl delete -n istio-system -f samples/multicluster/expose-istiod.yaml
istioctl manifest generate | kubectl delete -f -
istioctl uninstall -y --purge
}
snip_uninstall_5() {

View File

@ -51,6 +51,4 @@ _verify_contains check_call "Hello version:"
# @cleanup
docker stop vm
snip_uninstall_4
kubectl delete validatingwebhookconfiguration istiod-default-validator #TODO fix snip and then remove
kubectl delete mutatingwebhookconfiguration istio-revision-tag-default #TODO fix snip and then remove
kubectl delete namespace istio-system vm-namespace sample