From 84fbd7fc08e3ec7ecb73d65c7f1b90ed1e7de281 Mon Sep 17 00:00:00 2001 From: Dennis Adjei-Baah Date: Thu, 20 Jun 2019 09:45:11 -0700 Subject: [PATCH] delete webhook configs using script (#2966) --- bin/test-cleanup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/test-cleanup b/bin/test-cleanup index 979086ede..d8716dc75 100755 --- a/bin/test-cleanup +++ b/bin/test-cleanup @@ -24,12 +24,12 @@ if ! clusterroles=$(kubectl --context=$k8s_context get clusterroles -oname | gre echo "no clusterroles found for [$linkerd_namespace]" >&2 fi -if ! webhookconfigs=$(kubectl --context=$k8s_context get mutatingwebhookconfigurations -oname | grep -E "/linkerd-$linkerd_namespace(-|$)"); then - echo "no mutatingwebhookconfigurations found for [$linkerd_namespace]" >&2 +if ! webhookconfigs=$(kubectl --context=$k8s_context get mutatingwebhookconfigurations -oname | grep -E "/linkerd(-|$)"); then + echo "no mutatingwebhookconfigurations found" >&2 fi -if ! validatingconfigs=$(kubectl --context=$k8s_context get validatingwebhookconfigurations -oname | grep -E "/linkerd-$linkerd_namespace(-|$)"); then - echo "no validatingwebhookconfigurations found for [$linkerd_namespace]" >&2 +if ! validatingconfigs=$(kubectl --context=$k8s_context get validatingwebhookconfigurations -oname | grep -E "/linkerd(-|$)"); then + echo "no validatingwebhookconfigurations found" >&2 fi if [[ $namespaces || $clusterrolebindings || $clusterroles || $webhookconfigs || $validatingconfigs ]]; then