File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2121 spec :
2222 securityContext :
2323 runAsNonRoot : true
24+ {{- if .Values.manager.enableWebhooks }}
2425 volumes :
2526 - name : cert
2627 secret :
5455 - containerPort : 9443
5556 name : webhook-server
5657 protocol : TCP
58+ {{- if .Values.manager.enableWebhooks }}
5759 volumeMounts :
5860 - name : cert
5961 mountPath : /tmp/k8s-webhook-server/serving-certs/
7577 env :
7678 - name : IMAGE_PREFIX
7779 value : {{ .Values.imagePrefix }}
78- - name : ENABLED_WEBHOOKS
79- value : {{ .Values.manager.enabledWebhooks | quote }}
80+ - name : ENABLE_WEBHOOKS
81+ value : {{ .Values.manager.enableWebhooks | quote }}
8082 securityContext :
8183 allowPrivilegeEscalation : false
8284 livenessProbe :
Original file line number Diff line number Diff line change 1+ {{- if .Values.manager.enableWebhooks }}
12{{- $certManagerEnabled := .Values.webhook.certManager.enabled -}}
23{{- $caCertPEM := include "webhook.caBundleCertPEM" . -}}
34{{- $tlsCertPEM := include "webhook.certPEM" . -}}
7172 tls.crt : {{ b64enc $tlsCertPEM }}
7273 tls.key : {{ b64enc $tlsKeyPEM }}
7374{{- end }}
75+ {{- end }}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ tolerationSeconds: 30
2222manager :
2323 image : radondb/mysql-operator
2424 tag : v2.2.0
25- enabledWebhooks : true
25+ enableWebhooks : true
2626 resources : {}
2727 # We usually recommend not to specify default resources and to leave this as a conscious
2828 # choice for the user. This also increases chances charts run on environments with little
You can’t perform that action at this time.
0 commit comments