From 59757e35f39fecea62a874b7614e4f444ea89a20 Mon Sep 17 00:00:00 2001 From: holmesb <5072156+holmesb@users.noreply.github.com> Date: Tue, 7 Dec 2021 09:01:45 +0000 Subject: [PATCH] Conditionally added AWS_STS_REGIONAL_ENDPOINTS flag to controller's efs-plugin container. Is needed to create persistent volumes on private EKS clusters. Without this, dynamic pv creation errors: "Failed to fetch File System info: Describe File System failed" --- charts/aws-efs-csi-driver/CHANGELOG.md | 3 +++ charts/aws-efs-csi-driver/Chart.yaml | 2 +- .../aws-efs-csi-driver/templates/controller-deployment.yaml | 4 ++++ charts/aws-efs-csi-driver/values.yaml | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/charts/aws-efs-csi-driver/CHANGELOG.md b/charts/aws-efs-csi-driver/CHANGELOG.md index ddbbe85bf..80e9aba8f 100644 --- a/charts/aws-efs-csi-driver/CHANGELOG.md +++ b/charts/aws-efs-csi-driver/CHANGELOG.md @@ -1,5 +1,8 @@ # Helm chart +# v2.2.2 +* Add STS regional endpoints flag to fix PV creation on private EKS + # v2.2.1 * Add controller.volMetricsOptIn for emitting volume metrics diff --git a/charts/aws-efs-csi-driver/Chart.yaml b/charts/aws-efs-csi-driver/Chart.yaml index 0f40dba20..baddf40bd 100644 --- a/charts/aws-efs-csi-driver/Chart.yaml +++ b/charts/aws-efs-csi-driver/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: aws-efs-csi-driver -version: 2.2.1 +version: 2.2.2 appVersion: 1.3.3 kubeVersion: ">=1.17.0-0" description: "A Helm chart for AWS EFS CSI Driver" diff --git a/charts/aws-efs-csi-driver/templates/controller-deployment.yaml b/charts/aws-efs-csi-driver/templates/controller-deployment.yaml index 26c28abd1..a3d9ed066 100644 --- a/charts/aws-efs-csi-driver/templates/controller-deployment.yaml +++ b/charts/aws-efs-csi-driver/templates/controller-deployment.yaml @@ -58,6 +58,10 @@ spec: env: - name: CSI_ENDPOINT value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock + {{- if .Values.controller.regionalStsEndpoints }} + - name: AWS_STS_REGIONAL_ENDPOINTS + value: regional + {{- end }} volumeMounts: - name: socket-dir mountPath: /var/lib/csi/sockets/pluginproxy/ diff --git a/charts/aws-efs-csi-driver/values.yaml b/charts/aws-efs-csi-driver/values.yaml index 2282c55ea..a28055ba6 100644 --- a/charts/aws-efs-csi-driver/values.yaml +++ b/charts/aws-efs-csi-driver/values.yaml @@ -76,7 +76,7 @@ controller: ## Enable if EKS IAM for SA is used # eks.amazonaws.com/role-arn: arn:aws:iam::111122223333:role/efs-csi-role healthPort: 9909 - + regionalStsEndpoints: false ## Node daemonset variables node: