TrueChartsClone/charts/stable/pihole/templates/_configmap.tpl

14 lines
421 B
Smarty
Raw Normal View History

2021-09-04 16:07:59 +00:00
{{/* Define the configmap */}}
{{- define "pihole.configmap" -}}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: pihole-env
data:
WEBPASSWORD: {{ .Values.pihole.WEBPASSWORD | squote }}
{{- if .Values.pihole.DNS1 }}
"PIHOLE_DNS_": {{ if .Values.pihole.DNS2 }}{{ ( printf "%v;%v" .Values.pihole.DNS1 .Values.pihole.DNS2 ) | squote }}{{ else }}{{ .Values.pihole.DNS1 | squote }}{{ end }}
{{- end }}
{{- end -}}