fix configmapref and default to quad9 for pihole.
Also move it to stable
This commit is contained in:
@@ -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" . }}
|
||||
Reference in New Issue
Block a user