charts: refresh ingress-nginx cert-manager cert-manager-webhook-gandi
diff --git a/charts/cert-manager/templates/webhook-deployment.yaml b/charts/cert-manager/templates/webhook-deployment.yaml
index 259a96c..043c4b1 100644
--- a/charts/cert-manager/templates/webhook-deployment.yaml
+++ b/charts/cert-manager/templates/webhook-deployment.yaml
@@ -146,10 +146,15 @@
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
- {{- if .Values.webhook.config }}
+ {{- if or .Values.webhook.config .Values.webhook.volumeMounts }}
volumeMounts:
+ {{- if .Values.webhook.config }}
- name: config
mountPath: /var/cert-manager/config
+ {{- end }}
+ {{- if .Values.webhook.volumeMounts }}
+ {{- toYaml .Values.webhook.volumeMounts | nindent 12 }}
+ {{- end }}
{{- end }}
{{- with .Values.webhook.nodeSelector }}
nodeSelector:
@@ -167,9 +172,14 @@
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
- {{- if .Values.webhook.config }}
+ {{- if or .Values.webhook.config .Values.webhook.volumes }}
volumes:
+ {{- if .Values.webhook.config }}
- name: config
configMap:
name: {{ include "webhook.fullname" . }}
+ {{- end }}
+ {{- if .Values.webhook.volumes }}
+ {{- toYaml .Values.webhook.volumes | nindent 8 }}
+ {{- end }}
{{- end }}