mirror of
https://github.com/truenas/charts.git
synced 2026-04-05 11:48:55 +08:00
Only set dnspolicy if explicitly specified
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user