fix configmapref and default to quad9 for pihole.

Also move it to stable
This commit is contained in:
kjeld Schouten-Lebbing
2021-09-04 18:28:49 +02:00
parent b11892dbec
commit b91fb1d259
12 changed files with 6 additions and 6 deletions
@@ -0,0 +1,13 @@
{{/* 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 -}}
@@ -0,0 +1,8 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{/* Render configmap for pihole */}}
{{- include "pihole.configmap" . }}
{{/* Render the templates */}}
{{ include "common.all" . }}