scale-catalog/stable/pihole/16.6.13/templates/_configmap.tpl
Julian Haseleu 5d1ab94342 cleanup
2024-07-14 21:54:53 +00:00

15 lines
438 B
Smarty

{{/* Define the configmap */}}
{{- define "pihole.configmap" -}}
configmap:
pihole-env:
enabled: true
data:
WEBPASSWORD: {{ .Values.pihole.webPassword | quote }}
{{- with .Values.pihole.dnsServers }}
{{- if gt (len .) 2 -}}
{{- fail (printf "Pihole - Expected max 2 DNS Servers. But got [%v]" (len .)) -}}
{{- end }}
PIHOLE_DNS_: {{ join ";" . | quote }}
{{- end }}
{{- end -}}