15 lines
439 B
Smarty
15 lines
439 B
Smarty
{{/* Define the configmap */}}
|
|
{{- define "pihole.configmap" -}}
|
|
configmap:
|
|
pihole-env:
|
|
enabled: true
|
|
data:
|
|
WEBPASSWORD: {{ .Values.pihole.webPassword | squote }}
|
|
{{- 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 -}}
|