diff --git a/charts/coredns/Chart.yaml b/charts/coredns/Chart.yaml index 3e0ee12..62392a2 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.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 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"