From 2cd36c969b335d79512e96377396ee4e2e885dec Mon Sep 17 00:00:00 2001 From: Dinar Valeev Date: Tue, 6 Apr 2021 15:25:38 +0200 Subject: [PATCH] Allow to skip ConfigMap creation There are cases where zones are different but plugins are. In order to avoid duplication of whole zone block configuration, allow to disable config map creation and let it to be managable externally, where it is possible to keep plugins configuration same, but change zone definition only. Signed-off-by: Dinar Valeev --- charts/coredns/Chart.yaml | 2 +- charts/coredns/templates/configmap.yaml | 4 +++- charts/coredns/values.yaml | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/charts/coredns/Chart.yaml b/charts/coredns/Chart.yaml index 13dca33..ebd9637 100644 --- a/charts/coredns/Chart.yaml +++ b/charts/coredns/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: coredns -version: 1.16.3 +version: 1.16.4 appVersion: 1.8.4 home: https://coredns.io icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png diff --git a/charts/coredns/templates/configmap.yaml b/charts/coredns/templates/configmap.yaml index ebbea9b..4aa9498 100644 --- a/charts/coredns/templates/configmap.yaml +++ b/charts/coredns/templates/configmap.yaml @@ -1,4 +1,5 @@ -{{- if .Values.deployment.enabled }} +{{- if .Values.deployment.enabled }} +{{- if not .Values.deployment.skipConfig }} --- apiVersion: v1 kind: ConfigMap @@ -34,3 +35,4 @@ data: {{ .filename }}: {{ toYaml .contents | indent 4 }} {{- end }} {{- end }} +{{- end }} diff --git a/charts/coredns/values.yaml b/charts/coredns/values.yaml index c952736..c690339 100644 --- a/charts/coredns/values.yaml +++ b/charts/coredns/values.yaml @@ -297,5 +297,6 @@ autoscaler: successThreshold: 1 deployment: + skipConfig: false enabled: true name: ""