Commit 8b338dcb authored by Waqar Ahmed's avatar Waqar Ahmed

Only set dnspolicy if explicitly specified

parent 0e014063
...@@ -2,9 +2,11 @@ ...@@ -2,9 +2,11 @@
DNS Configuration DNS Configuration
*/}} */}}
{{- define "common.networking.dnsConfiguration" }} {{- define "common.networking.dnsConfiguration" }}
{{ if .Values.dnsPolicy }}
dnsPolicy: {{ .Values.dnsPolicy }} dnsPolicy: {{ .Values.dnsPolicy }}
{{- if .Values.dnsConfig }} {{ end }}
{{ if .Values.dnsConfig }}
dnsConfig: dnsConfig:
{{- toYaml .Values.dnsConfig | nindent 2 }} {{ toYaml .Values.dnsConfig | nindent 2 }}
{{- end }} {{ end }}
{{- end }} {{- end }}
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