| 1234567891011121314151617181920212223 |
- {{/*
- 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 -}}
|