From 0fdab2050dc6109c734a7728cb276c15b6d8d37a Mon Sep 17 00:00:00 2001 From: tomdymond Date: Fri, 26 Mar 2021 19:00:48 +0000 Subject: [PATCH 1/3] Add the possibility of passing additional env vars Example of a possible env var would be: AWS_STS_REGIONAL_ENDPOINTS=regiojnal --- charts/aws-ebs-csi-driver/templates/controller.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/aws-ebs-csi-driver/templates/controller.yaml b/charts/aws-ebs-csi-driver/templates/controller.yaml index 835a5eea5f..9e9c48b6d7 100644 --- a/charts/aws-ebs-csi-driver/templates/controller.yaml +++ b/charts/aws-ebs-csi-driver/templates/controller.yaml @@ -88,6 +88,12 @@ spec: - name: AWS_REGION value: {{ .Values.region }} {{- end }} + {{- if .Values.controller.extraVars }} + {{- range $key, $val := .Values.controller.extraVars }} + - name: {{ $key }} + value: "{{ $val }}" + {{- end }} + {{- end }} {{- if .Values.proxy.http_proxy }} - name: HTTP_PROXY value: {{ .Values.proxy.http_proxy | quote }} From a81d1d8a08f9859980615634294a4af400e485f6 Mon Sep 17 00:00:00 2001 From: tomdymond Date: Fri, 26 Mar 2021 19:04:22 +0000 Subject: [PATCH 2/3] Additonal environment variables for the controller Update chart values with controller envVars --- charts/aws-ebs-csi-driver/values.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/aws-ebs-csi-driver/values.yaml b/charts/aws-ebs-csi-driver/values.yaml index 4231c74bcc..d8e416e5bc 100644 --- a/charts/aws-ebs-csi-driver/values.yaml +++ b/charts/aws-ebs-csi-driver/values.yaml @@ -107,6 +107,10 @@ k8sTagClusterId: "" # region: us-east-1 region: "" +# Additonal environment variables for the controller +controller: + extraVars: {} + node: priorityClassName: "" nodeSelector: {} From 5924f16e154b968f6aba2696df038091eb19405f Mon Sep 17 00:00:00 2001 From: tomdymond Date: Mon, 29 Mar 2021 17:32:55 +0100 Subject: [PATCH 3/3] Update patch version --- charts/aws-ebs-csi-driver/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/aws-ebs-csi-driver/Chart.yaml b/charts/aws-ebs-csi-driver/Chart.yaml index 8ca745c018..09bee7d07c 100644 --- a/charts/aws-ebs-csi-driver/Chart.yaml +++ b/charts/aws-ebs-csi-driver/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "0.9.1" name: aws-ebs-csi-driver description: A Helm chart for AWS EBS CSI Driver -version: 0.9.14 +version: 0.9.15 kubeVersion: ">=1.17.0-0" home: https://github.com/kubernetes-sigs/aws-ebs-csi-driver sources: