From df2d52d344efee306e2b81ba0ecc2d918a80e93d Mon Sep 17 00:00:00 2001 From: Ed Doh Date: Sun, 15 Jan 2023 04:09:50 +0900 Subject: [PATCH 1/3] Add environment variables on container specs Signed-off-by: Ed Doh --- charts/coredns/README.md | 1 + charts/coredns/templates/deployment.yaml | 4 ++++ charts/coredns/values.yaml | 11 +++++++++++ 3 files changed, 16 insertions(+) diff --git a/charts/coredns/README.md b/charts/coredns/README.md index 7a87ac8..33ca309 100644 --- a/charts/coredns/README.md +++ b/charts/coredns/README.md @@ -103,6 +103,7 @@ The command removes all the Kubernetes components associated with the chart and | `extraVolumes` | Optional array of volumes to create | [] | | `extraVolumeMounts` | Optional array of volumes to mount inside the CoreDNS container | [] | | `extraSecrets` | Optional array of secrets to mount inside the CoreDNS container | [] | +| `env` | Optional array of environment variables for CoreDNS container | [] | | `customLabels` | Optional labels for Deployment(s), Pod, Service, ServiceMonitor objects | {} | | `customAnnotations` | Optional annotations for Deployment(s), Pod, Service, ServiceMonitor objects | | `rollingUpdate.maxUnavailable` | Maximum number of unavailable replicas during rolling update | `1` | diff --git a/charts/coredns/templates/deployment.yaml b/charts/coredns/templates/deployment.yaml index 86db59f..bc19272 100644 --- a/charts/coredns/templates/deployment.yaml +++ b/charts/coredns/templates/deployment.yaml @@ -107,6 +107,10 @@ spec: {{- end }} {{- if .Values.extraVolumeMounts }} {{- toYaml .Values.extraVolumeMounts | nindent 8}} +{{- end }} +{{- if .Values.env }} + env: +{{- toYaml .Values.env | nindent 10}} {{- end }} resources: {{ toYaml .Values.resources | indent 10 }} diff --git a/charts/coredns/values.yaml b/charts/coredns/values.yaml index 9bac327..4c1333f 100644 --- a/charts/coredns/values.yaml +++ b/charts/coredns/values.yaml @@ -259,6 +259,17 @@ extraSecrets: [] # mountPath: /etc/wherever # defaultMode: 440 +# optional array of environment variables for coredns container +# possible usecase: provides username and password for etcd user authentications +env: [] +# - name: WHATEVER_ENV +# value: whatever +# - name: SOME_SECRET_ENV +# valueFrom: +# secretKeyRef: +# name: some-secret-name +# key: secret-key + # To support legacy deployments using CoreDNS with the "k8s-app: kube-dns" label selectors. # See https://github.com/coredns/helm/blob/master/charts/coredns/README.md#adopting-existing-coredns-resources # k8sAppLabelOverride: "kube-dns" From d9ee1f4afa05321b350c03b554c68e5465c18c28 Mon Sep 17 00:00:00 2001 From: Florent David Date: Tue, 8 Oct 2024 20:35:22 +0200 Subject: [PATCH 2/3] bump version to 1.35.2 Signed-off-by: Florent David --- charts/coredns/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/coredns/Chart.yaml b/charts/coredns/Chart.yaml index 3e0ee12..ece5d82 100644 --- a/charts/coredns/Chart.yaml +++ b/charts/coredns/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: coredns -version: 1.35.1 +version: 1.35.2 appVersion: 1.11.3 home: https://coredns.io icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png From 892b8af89f5a91d1170dc1de7f7ecfd9133b64bc Mon Sep 17 00:00:00 2001 From: Florent David Date: Wed, 9 Oct 2024 08:57:49 +0200 Subject: [PATCH 3/3] bump version to 1.36.0 Co-authored-by: Hagai Barel Signed-off-by: Florent David --- charts/coredns/Chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/coredns/Chart.yaml b/charts/coredns/Chart.yaml index ece5d82..62392a2 100644 --- a/charts/coredns/Chart.yaml +++ b/charts/coredns/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: coredns -version: 1.35.2 +version: 1.36.0 appVersion: 1.11.3 home: https://coredns.io icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png @@ -20,4 +20,4 @@ type: application annotations: artifacthub.io/changes: | - kind: changed - description: Move `trafficDistribution` key to correct path + description: Add environment variables on container specs