Commit 98982a54 authored by Wojtek Siudzinski's avatar Wojtek Siudzinski Committed by David McKay

Check the if hooks is declared

parent 803d3235
......@@ -39,6 +39,7 @@ spec:
- name: {{ .name }}
mountPath: {{ .mountPath }}
{{- end }}
{{- if .Values.hooks }}
{{- if or (.Values.hooks.postStart) (.Values.hooks.preStop) }}
lifecycle:
{{- if .Values.hooks.postStart }}
......@@ -58,6 +59,7 @@ spec:
{{- end }}
{{ end }}
{{ end }}
{{ end }}
{{- range $objectKey, $objectValue := .Values.config.outputs }}
{{- range $key, $value := . -}}
{{- $tp := typeOf $value -}}
......
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