mirror of
https://github.com/truenas/charts.git
synced 2026-11-24 23:21:05 +00:00
24 lines
484 B
Smarty
24 lines
484 B
Smarty
{{/*
|
|
DNS Configuration
|
|
*/}}
|
|
{{- define "dnsConfiguration" }}
|
|
dnsPolicy: {{ .Values.dnsPolicy }}
|
|
{{- if .Values.dnsConfig }}
|
|
dnsConfig:
|
|
{{- toYaml .Values.dnsConfig | nindent 2 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
|
|
{{/*
|
|
Get configuration for host network
|
|
*/}}
|
|
{{- define "hostNetworkingConfiguration" -}}
|
|
{{- $host := default false .Values.hostNetwork -}}
|
|
{{- if or .Values.externalInterfaces (eq $host false) -}}
|
|
{{- print "false" -}}
|
|
{{- else -}}
|
|
{{- print "true" -}}
|
|
{{- end -}}
|
|
{{- end -}}
|