From 91d2a723c9a6e7358f2555a1ef3d64f7ad1c9d28 Mon Sep 17 00:00:00 2001 From: YoonHyunWoo Date: Sat, 27 Apr 2024 16:33:25 +0900 Subject: [PATCH] Add DNS configuration options to Helm chart --- charts/aws-ebs-csi-driver/templates/controller.yaml | 8 ++++++++ charts/aws-ebs-csi-driver/values.yaml | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/charts/aws-ebs-csi-driver/templates/controller.yaml b/charts/aws-ebs-csi-driver/templates/controller.yaml index f9eca67ff5..6407e9c44b 100644 --- a/charts/aws-ebs-csi-driver/templates/controller.yaml +++ b/charts/aws-ebs-csi-driver/templates/controller.yaml @@ -68,6 +68,14 @@ spec: initContainers: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.controller.dnsConfig }} + dnsConfig: + options: + {{- range .Values.controller.dnsConfig.options }} + - name: {{ .name }} + value: "{{ .value }}" + {{- end }} + {{- end }} containers: - name: ebs-plugin image: {{ printf "%s%s:%s" (default "" .Values.image.containerRegistry) .Values.image.repository (default (printf "v%s" .Chart.AppVersion) (.Values.image.tag | toString)) }} diff --git a/charts/aws-ebs-csi-driver/values.yaml b/charts/aws-ebs-csi-driver/values.yaml index ca9cea070a..9122701ebb 100644 --- a/charts/aws-ebs-csi-driver/values.yaml +++ b/charts/aws-ebs-csi-driver/values.yaml @@ -324,6 +324,10 @@ controller: otelTracing: {} # otelServiceName: ebs-csi-controller # otelExporterEndpoint: "http://localhost:4317" + dnsConfig: + options: + - name : ndots + value : "5" node: env: []