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

Only set dnspolicy if explicitly specified

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