diff --git a/charts/external-dns/CHANGELOG.md b/charts/external-dns/CHANGELOG.md index aa7a106149..8c0fa5c028 100644 --- a/charts/external-dns/CHANGELOG.md +++ b/charts/external-dns/CHANGELOG.md @@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [UNRELEASED] +- Added support for dnsConfig. ([#4265](https://github.com/kubernetes-sigs/external-dns/pull/4265)) [@davhdavh](https://github.com/davhdavh) + ## [v1.14.3] - 2023-01-26 ### Fixed diff --git a/charts/external-dns/README.md b/charts/external-dns/README.md index c5084663ae..99aab975e1 100644 --- a/charts/external-dns/README.md +++ b/charts/external-dns/README.md @@ -83,6 +83,7 @@ If `namespaced` is set to `true`, please ensure that `sources` my only contains | commonLabels | object | `{}` | Labels to add to all chart resources. | | deploymentAnnotations | object | `{}` | Annotations to add to the `Deployment`. | | deploymentStrategy | object | `{"type":"Recreate"}` | [Deployment Strategy](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy). | +| dnsConfig | object | `nil` | [DNS config](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config) for the pod, if not set the default will be used. | | dnsPolicy | string | `nil` | [DNS policy](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy) for the pod, if not set the default will be used. | | domainFilters | list | `[]` | | | env | list | `[]` | [Environment variables](https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/) for the `external-dns` container. | diff --git a/charts/external-dns/templates/deployment.yaml b/charts/external-dns/templates/deployment.yaml index d0344a3ed1..ea98981c0d 100644 --- a/charts/external-dns/templates/deployment.yaml +++ b/charts/external-dns/templates/deployment.yaml @@ -61,6 +61,10 @@ spec: {{- with .Values.dnsPolicy }} dnsPolicy: {{ . }} {{- end }} + {{- with .Values.dnsConfig }} + dnsConfig: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.initContainers }} initContainers: {{- toYaml . | nindent 8 }} diff --git a/charts/external-dns/values.yaml b/charts/external-dns/values.yaml index 277a485ce2..a11d5df8e8 100644 --- a/charts/external-dns/values.yaml +++ b/charts/external-dns/values.yaml @@ -89,6 +89,9 @@ terminationGracePeriodSeconds: # -- (string) [DNS policy](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy) for the pod, if not set the default will be used. dnsPolicy: +# -- (object) [DNS config](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config) for the pod, if not set the default will be used. +dnsConfig: + # -- [Init containers](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) to add to the `Pod` definition. initContainers: []