Skip to content

Commit 80ac9c0

Browse files
authored
Wrap volumes key in conditional to protect from being nil (#555)
1 parent d6d71c4 commit 80ac9c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/helm/aws-node-termination-handler/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ spec:
2626
{{ $key }}: {{ $value | quote }}
2727
{{- end }}
2828
spec:
29+
{{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }}
2930
volumes:
30-
{{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }}
3131
- name: "webhook-template"
3232
configMap:
3333
name: {{ .Values.webhookTemplateConfigMapName }}
34-
{{- end }}
34+
{{- end }}
3535
priorityClassName: {{ .Values.priorityClassName | quote }}
3636
affinity:
3737
{{- with .Values.affinity }}

0 commit comments

Comments
 (0)