_networking.tpl 484 B

1234567891011121314151617181920212223
  1. {{/*
  2. DNS Configuration
  3. */}}
  4. {{- define "dnsConfiguration" }}
  5. dnsPolicy: {{ .Values.dnsPolicy }}
  6. {{- if .Values.dnsConfig }}
  7. dnsConfig:
  8. {{- toYaml .Values.dnsConfig | nindent 2 }}
  9. {{- end }}
  10. {{- end }}
  11. {{/*
  12. Get configuration for host network
  13. */}}
  14. {{- define "hostNetworkingConfiguration" -}}
  15. {{- $host := default false .Values.hostNetwork -}}
  16. {{- if or .Values.externalInterfaces (eq $host false) -}}
  17. {{- print "false" -}}
  18. {{- else -}}
  19. {{- print "true" -}}
  20. {{- end -}}
  21. {{- end -}}