mirror of https://github.com/linkerd/linkerd2.git
delete webhook configs using script (#2966)
This commit is contained in:
parent
435fe861d0
commit
84fbd7fc08
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue