From 72b6c8c3f3d46bef9b30c3460c66debf9aedda53 Mon Sep 17 00:00:00 2001 From: Calvin Bui <3604363+calvinbui@users.noreply.github.com> Date: Wed, 2 Aug 2023 11:11:51 +1000 Subject: [PATCH 1/3] support initContainers Signed-off-by: Calvin Bui <3604363+calvinbui@users.noreply.github.com> --- charts/external-dns/CHANGELOG.md | 1 + charts/external-dns/templates/deployment.yaml | 4 ++++ charts/external-dns/values.yaml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/charts/external-dns/CHANGELOG.md b/charts/external-dns/CHANGELOG.md index 5c18948e0d..e44efb26e0 100644 --- a/charts/external-dns/CHANGELOG.md +++ b/charts/external-dns/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Disallowed privilege escalation in container security context and set the seccomp profile type to `RuntimeDefault`. ([#3689](https://github.com/kubernetes-sigs/external-dns/pull/3689)) [@nrvnrvn](https://github.com/nrvnrvn) - Added RBAC for Traefik to ClusterRole. ([#3325](https://github.com/kubernetes-sigs/external-dns/pull/3325)) [@ThomasK33](https://github.com/thomask33) +- Support initContainers. ## [v1.13.0] - 2023-03-30 diff --git a/charts/external-dns/templates/deployment.yaml b/charts/external-dns/templates/deployment.yaml index a175dbf643..c05d50df42 100644 --- a/charts/external-dns/templates/deployment.yaml +++ b/charts/external-dns/templates/deployment.yaml @@ -54,6 +54,10 @@ spec: {{- with .Values.dnsPolicy }} dnsPolicy: {{ . }} {{- end }} + {{- with .Values.initContainers }} + initContainers: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: external-dns {{- with .Values.securityContext }} diff --git a/charts/external-dns/values.yaml b/charts/external-dns/values.yaml index 5a2d22d9b2..fdcd421ac4 100644 --- a/charts/external-dns/values.yaml +++ b/charts/external-dns/values.yaml @@ -31,6 +31,8 @@ rbac: create: true additionalPermissions: [] +initContainers: [] + # Annotations to add to the Deployment deploymentAnnotations: {} From 1baba27fce2c53e93981b3f473473663fcc3b126 Mon Sep 17 00:00:00 2001 From: Calvin Bui <3604363+calvinbui@users.noreply.github.com> Date: Wed, 2 Aug 2023 11:14:04 +1000 Subject: [PATCH 2/3] update changelog Signed-off-by: Calvin Bui <3604363+calvinbui@users.noreply.github.com> --- charts/external-dns/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/external-dns/CHANGELOG.md b/charts/external-dns/CHANGELOG.md index e44efb26e0..6e46d9f928 100644 --- a/charts/external-dns/CHANGELOG.md +++ b/charts/external-dns/CHANGELOG.md @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Disallowed privilege escalation in container security context and set the seccomp profile type to `RuntimeDefault`. ([#3689](https://github.com/kubernetes-sigs/external-dns/pull/3689)) [@nrvnrvn](https://github.com/nrvnrvn) - Added RBAC for Traefik to ClusterRole. ([#3325](https://github.com/kubernetes-sigs/external-dns/pull/3325)) [@ThomasK33](https://github.com/thomask33) -- Support initContainers. +- Support initContainers. ([#3325](https://github.com/kubernetes-sigs/external-dns/pull/3838)) [@calvinbui](https://github.com/calvinbui) ## [v1.13.0] - 2023-03-30 From 2e9864a798341a5bcf365954506c179b57decdb9 Mon Sep 17 00:00:00 2001 From: Calvin Bui <3604363+calvinbui@users.noreply.github.com> Date: Wed, 2 Aug 2023 22:45:41 +1000 Subject: [PATCH 3/3] add initContainers to chart README Signed-off-by: Calvin Bui <3604363+calvinbui@users.noreply.github.com> --- charts/external-dns/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/external-dns/README.md b/charts/external-dns/README.md index 145cc78037..4ea6f4fe74 100644 --- a/charts/external-dns/README.md +++ b/charts/external-dns/README.md @@ -34,6 +34,7 @@ The following table lists the configurable parameters of the _ExternalDNS_ chart | `serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the full name template. | `""` | | `rbac.create` | If `true`, create the RBAC resources. | `true` | | `rbac.additionalPermissions` | Additional permissions to be added to the cluster role. | `{}` | +| `initContainers` | Add init containers to the pod. | `[]` | | `deploymentAnnotations` | Annotations to add to the Deployment. | `{}` | | `podLabels` | Labels to add to the pod. | `{}` | | `podAnnotations` | Annotations to add to the pod. | `{}` |