mirror of
https://github.com/FlipsideCrypto/coredns-helm.git
synced 2026-02-06 10:56:50 +00:00
This is the common approach, stable doesnt make sense. Also since coredns is the only chart in this repo, link the README instead. Signed-off-by: Manuel Rüger <manuel@rueg.eu>
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
{{- if .Values.deployment.enabled }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ template "coredns.fullname" . }}
|
|
labels:
|
|
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
|
|
app.kubernetes.io/instance: {{ .Release.Name | quote }}
|
|
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
|
|
{{- if .Values.isClusterService }}
|
|
k8s-app: {{ .Chart.Name | quote }}
|
|
kubernetes.io/cluster-service: "true"
|
|
kubernetes.io/name: "CoreDNS"
|
|
{{- end }}
|
|
app.kubernetes.io/name: {{ template "coredns.name" . }}
|
|
{{- if .Values.customLabels }}
|
|
{{ toYaml .Values.customLabels | indent 4 }}
|
|
{{- end }}
|
|
data:
|
|
Corefile: |-
|
|
{{ range .Values.servers }}
|
|
{{- range $idx, $zone := .zones }}{{ if $idx }} {{ else }}{{ end }}{{ default "" $zone.scheme }}{{ default "." $zone.zone }}{{ else }}.{{ end -}}
|
|
{{- if .port }}:{{ .port }} {{ end -}}
|
|
{
|
|
{{- range .plugins }}
|
|
{{ .name }}{{ if .parameters }} {{ .parameters }}{{ end }}{{ if .configBlock }} {
|
|
{{ .configBlock | indent 12 }}
|
|
}{{ end }}
|
|
{{- end }}
|
|
}
|
|
{{ end }}
|
|
{{- range .Values.zoneFiles }}
|
|
{{ .filename }}: {{ toYaml .contents | indent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|