From ac5ec4aa809bb4c4820a6556507c0c63f0e61c5b Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Wed, 10 Jun 2020 13:46:30 -0400 Subject: [PATCH] Adjust admission webhook auth config for default-enabled admission plugins --- cluster/gce/gci/configure-helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/gce/gci/configure-helper.sh b/cluster/gce/gci/configure-helper.sh index a373ba4ecc9..96b32a7f5f4 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -965,7 +965,7 @@ EOF # If GKE exec auth for webhooks has been requested, then # ValidatingAdmissionWebhook should use it. Otherwise, run with the default # config. - if [[ "${ADMISSION_CONTROL:-}" == *"ValidatingAdmissionWebhook"* && -n "${WEBHOOK_GKE_EXEC_AUTH:-}" ]]; then + if [[ -n "${WEBHOOK_GKE_EXEC_AUTH:-}" ]]; then 1>&2 echo "ValidatingAdmissionWebhook requested, and WEBHOOK_GKE_EXEC_AUTH specified. Configuring ValidatingAdmissionWebhook to use gke-exec-auth-plugin." # Append config for ValidatingAdmissionWebhook to the shared admission