From 2b05acf6bcfaa0da3a5eca1256eda4af10369025 Mon Sep 17 00:00:00 2001 From: Yosef Mihretie Date: Wed, 26 Feb 2025 09:36:41 -0500 Subject: [PATCH 1/3] allow configuring custom directory perms on the efs volumes --- applications/web/templates/efs-storage-class.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/web/templates/efs-storage-class.yaml b/applications/web/templates/efs-storage-class.yaml index 6a018d27..0908924a 100644 --- a/applications/web/templates/efs-storage-class.yaml +++ b/applications/web/templates/efs-storage-class.yaml @@ -8,7 +8,7 @@ provisioner: efs.csi.aws.com parameters: provisioningMode: efs-ap fileSystemId: {{ $v.fileSystemId }} - directoryPerms: "700" + directoryPerms: {{ default "700" $v.directoryPerms }} reuseAccessPoint: "true" --- apiVersion: v1 From ffb641ff3f09706aacf34f63d780ce49a365f279 Mon Sep 17 00:00:00 2001 From: Yosef Mihretie Date: Wed, 26 Feb 2025 09:43:18 -0500 Subject: [PATCH 2/3] also modify size --- applications/web/templates/efs-storage-class.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/web/templates/efs-storage-class.yaml b/applications/web/templates/efs-storage-class.yaml index 0908924a..f3d26691 100644 --- a/applications/web/templates/efs-storage-class.yaml +++ b/applications/web/templates/efs-storage-class.yaml @@ -21,7 +21,7 @@ spec: storageClassName: {{ include "docker-template.efsName" (dict "fullname" $.Values.fullnameOverride "index" $index) }} resources: requests: - storage: 5Gi + storage: {{ default "5Gi" $v.storageSize }} --- {{- end }} {{- end }} From cb515fa867f4e0c890a75c671472e102e7dcb7bf Mon Sep 17 00:00:00 2001 From: Yosef Mihretie Date: Wed, 26 Feb 2025 09:57:27 -0500 Subject: [PATCH 3/3] fix --- applications/web/templates/efs-storage-class.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/web/templates/efs-storage-class.yaml b/applications/web/templates/efs-storage-class.yaml index f3d26691..167b1232 100644 --- a/applications/web/templates/efs-storage-class.yaml +++ b/applications/web/templates/efs-storage-class.yaml @@ -8,7 +8,7 @@ provisioner: efs.csi.aws.com parameters: provisioningMode: efs-ap fileSystemId: {{ $v.fileSystemId }} - directoryPerms: {{ default "700" $v.directoryPerms }} + directoryPerms: "{{ default "700" $v.directoryPerms }}" reuseAccessPoint: "true" --- apiVersion: v1