Skip to content

Commit 4bf879e

Browse files
committed
fix(helm): gate operator TLS volume mount on webhook.certManager.enabled
1 parent 3f7cfdd commit 4bf879e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

charts/imp/templates/operator/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,16 @@ spec:
6767
periodSeconds: 10
6868
resources:
6969
{{- toYaml .Values.operator.resources | nindent 10 }}
70+
{{- if .Values.webhook.certManager.enabled }}
7071
volumeMounts:
7172
- name: webhook-tls
7273
mountPath: /tmp/k8s-webhook-server/serving-certs
7374
readOnly: true
75+
{{- end }}
76+
{{- if .Values.webhook.certManager.enabled }}
7477
volumes:
7578
- name: webhook-tls
7679
secret:
7780
secretName: {{ include "imp.fullname" . }}-webhook-tls
81+
{{- end }}
7882
terminationGracePeriodSeconds: 10

0 commit comments

Comments
 (0)