From bf2db73f71e2028534b70e413fce026f6ae0cc60 Mon Sep 17 00:00:00 2001 From: lv Date: Thu, 17 Nov 2022 22:11:57 +0800 Subject: [PATCH] fix: featureGates add webhook deployment in chart yaml Signed-off-by: lvyanru <1113706590@qq.com> --- deploy/charts/cert-manager/templates/webhook-deployment.yaml | 3 +++ deploy/charts/cert-manager/values.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/charts/cert-manager/templates/webhook-deployment.yaml b/deploy/charts/cert-manager/templates/webhook-deployment.yaml index 9e27afd61..259a96c79 100644 --- a/deploy/charts/cert-manager/templates/webhook-deployment.yaml +++ b/deploy/charts/cert-manager/templates/webhook-deployment.yaml @@ -71,6 +71,9 @@ spec: {{ if not $config.securePort -}} - --secure-port={{ .Values.webhook.securePort }} {{- end }} + {{- if .Values.featureGates }} + - --feature-gates={{ .Values.featureGates }} + {{- end }} {{- $tlsConfig := default $config.tlsConfig "" }} {{ if or (not $config.tlsConfig) (and (not $tlsConfig.dynamic) (not $tlsConfig.filesystem) ) -}} - --dynamic-serving-ca-secret-namespace=$(POD_NAMESPACE) diff --git a/deploy/charts/cert-manager/values.yaml b/deploy/charts/cert-manager/values.yaml index 295fea4ee..14056dd66 100644 --- a/deploy/charts/cert-manager/values.yaml +++ b/deploy/charts/cert-manager/values.yaml @@ -61,7 +61,7 @@ strategy: {} # maxUnavailable: 1 # Comma separated list of feature gates that should be enabled on the -# controller pod. +# controller pod & webhook pod. featureGates: "" image: