23 lines
597 B
YAML
23 lines
597 B
YAML
{{- if .Values.config.enabled }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "unbound.fullname" . }}-config
|
|
namespace: {{ .Values.global.namespace }}
|
|
labels:
|
|
{{- include "unbound.labels" . | nindent 4 }}
|
|
data:
|
|
{{- if .Values.config.forwardRecords }}
|
|
forward-records.conf: |
|
|
{{ .Values.config.forwardRecords | indent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.config.serverConfig }}
|
|
a-records.conf: |
|
|
{{ .Values.config.serverConfig | indent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.config.content }}
|
|
unbound.conf: |
|
|
{{ .Values.config.content | indent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|