Skip to content

Commit

Permalink
Fix a bug in helm chart where webhook had controller feature gates pa…
Browse files Browse the repository at this point in the history
…ssed

This will break anyone who relied on featureGates field to pass feature gates to webhook- they will need to use the new webhook.featureGates field

Signed-off-by: irbekrm <irbekrm@gmail.com>
  • Loading branch information
irbekrm committed May 23, 2023
1 parent 8a34cbc commit acf0741
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Expand Up @@ -72,7 +72,7 @@ spec:
- --secure-port={{ .Values.webhook.securePort }}
{{- end }}
{{- if .Values.featureGates }}
- --feature-gates={{ .Values.featureGates }}
- --feature-gates={{ .Values.webhook.featureGates }}
{{- end }}
{{- $tlsConfig := default $config.tlsConfig "" }}
{{ if or (not $config.tlsConfig) (and (not $tlsConfig.dynamic) (not $tlsConfig.filesystem) ) -}}
Expand Down
6 changes: 5 additions & 1 deletion deploy/charts/cert-manager/values.yaml
Expand Up @@ -70,7 +70,7 @@ podDisruptionBudget:
# or a percentage value (e.g. 25%)

# Comma separated list of feature gates that should be enabled on the
# controller pod & webhook pod.
# controller pod.
featureGates: ""

# The maximum number of challenges that can be scheduled as 'processing' at once
Expand Down Expand Up @@ -341,6 +341,10 @@ webhook:
# Path to a file containing a WebhookConfiguration object used to configure the webhook
# - --config=<path-to-config-file>

# Comma separated list of feature gates that should be enabled on the
# webhok pod.
featureGates: ""

resources: {}
# requests:
# cpu: 10m
Expand Down
2 changes: 1 addition & 1 deletion make/e2e-setup.mk
Expand Up @@ -270,7 +270,7 @@ e2e-setup-certmanager: $(BINDIR)/cert-manager.tgz $(foreach binaryname,controlle
--set installCRDs=true \
--set featureGates="$(feature_gates_controller)" \
--set "extraArgs={--kube-api-qps=9000,--kube-api-burst=9000,--concurrent-workers=200}" \
--set "webhook.extraArgs={--feature-gates=$(feature_gates_webhook)}" \
--set webhook.featureGates="$(feature_gates_webhook)" \
--set "cainjector.extraArgs={--feature-gates=$(feature_gates_cainjector)}" \
--set "dns01RecursiveNameservers=$(SERVICE_IP_PREFIX).16:53" \
--set "dns01RecursiveNameserversOnly=true" \
Expand Down

0 comments on commit acf0741

Please sign in to comment.