Commit adb7338b authored by Wojtek Siudzinski's avatar Wojtek Siudzinski Committed by David McKay

Only render lifecycle key if any of the hooks is present

parent 35046cec
...@@ -39,7 +39,7 @@ spec: ...@@ -39,7 +39,7 @@ spec:
- name: {{ .name }} - name: {{ .name }}
mountPath: {{ .mountPath }} mountPath: {{ .mountPath }}
{{- end }} {{- end }}
{{- if .Values.hooks }} {{- if or (.Values.hooks.postStart) (.Values.hooks.preStop) }}
lifecycle: lifecycle:
{{- if .Values.hooks.postStart }} {{- if .Values.hooks.postStart }}
postStart: postStart:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment