From 77aab42dda265ba1ef22eb151d251dcbaddd0fe4 Mon Sep 17 00:00:00 2001 From: Omer Aplatony Date: Sat, 11 May 2024 18:57:19 +0300 Subject: [PATCH] Expose dnsConfig in Helm Chart for Custom DNS Configuration --- charts/aws-ebs-csi-driver/CHANGELOG.md | 1 + charts/aws-ebs-csi-driver/templates/controller.yaml | 4 ++++ charts/aws-ebs-csi-driver/values.yaml | 7 ++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/charts/aws-ebs-csi-driver/CHANGELOG.md b/charts/aws-ebs-csi-driver/CHANGELOG.md index 3daf61e5ec..ad39f51360 100644 --- a/charts/aws-ebs-csi-driver/CHANGELOG.md +++ b/charts/aws-ebs-csi-driver/CHANGELOG.md @@ -3,6 +3,7 @@ * Bump driver version to `v1.30.0` * Update voluemessnapshotcontents/status RBAC ([#1991](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1991), [@AndrewSirenko](https://github.com/AndrewSirenko)) * Upgrade dependencies ([#2016](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/2016), [@torredil](https://github.com/torredil)) +* Add `dnsConfig` for the controller and node pods ([#2034](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/2034), [@omerap12](https://github.com/omerap12)) ## v2.29.1 * Bump driver version to `v1.29.1` diff --git a/charts/aws-ebs-csi-driver/templates/controller.yaml b/charts/aws-ebs-csi-driver/templates/controller.yaml index f9eca67ff5..89468b1cae 100644 --- a/charts/aws-ebs-csi-driver/templates/controller.yaml +++ b/charts/aws-ebs-csi-driver/templates/controller.yaml @@ -501,3 +501,7 @@ spec: {{- with .Values.controller.volumes }} {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.controller.dnsConfig }} + dnsConfig: + {{- toYaml .Values.controller.dnsConfig | nindent 4 }} + {{- end }} diff --git a/charts/aws-ebs-csi-driver/values.yaml b/charts/aws-ebs-csi-driver/values.yaml index ca9cea070a..d6caddcf89 100644 --- a/charts/aws-ebs-csi-driver/values.yaml +++ b/charts/aws-ebs-csi-driver/values.yaml @@ -324,6 +324,11 @@ controller: otelTracing: {} # otelServiceName: ebs-csi-controller # otelExporterEndpoint: "http://localhost:4317" + + # Enable dnsConfig for the controller and node pods + dnsConfig: {} + + node: env: [] @@ -467,4 +472,4 @@ useOldCSIDriver: false helmTester: enabled: true # Supply a custom image to the ebs-csi-driver-test pod in helm-tester.yaml - image: "gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240311-b09cdeb92c-master" + image: "gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240311-b09cdeb92c-master" \ No newline at end of file