From 275c62e4237060d077c16e9d6dc2837d389f892c Mon Sep 17 00:00:00 2001 From: Shawn Sun <32376495+ssz1997@users.noreply.github.com> Date: Wed, 1 Nov 2023 11:47:04 -0700 Subject: [PATCH] Add required accessModes to csi pvc (#88) * add required accessModes * add new line EOF * fix test --- deploy/charts/alluxio/templates/csi/pvc.yaml | 4 +++- tests/helm/expectedTemplates/csi/pvc.yaml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy/charts/alluxio/templates/csi/pvc.yaml b/deploy/charts/alluxio/templates/csi/pvc.yaml index 88c241a96..bff633823 100644 --- a/deploy/charts/alluxio/templates/csi/pvc.yaml +++ b/deploy/charts/alluxio/templates/csi/pvc.yaml @@ -17,6 +17,8 @@ metadata: name: {{ $fullName }}-alluxio-csi-fuse-pvc spec: storageClassName: {{ $fullName }}-csi-storage-class + accessModes: + - ReadWriteOnce resources: requests: - storage: 1Mi # The storage here is only for mount, so the size doesn't matter \ No newline at end of file + storage: 1Mi # The storage here is only for mount, so the size doesn't matter diff --git a/tests/helm/expectedTemplates/csi/pvc.yaml b/tests/helm/expectedTemplates/csi/pvc.yaml index fda60c547..14c4b6508 100644 --- a/tests/helm/expectedTemplates/csi/pvc.yaml +++ b/tests/helm/expectedTemplates/csi/pvc.yaml @@ -17,6 +17,8 @@ metadata: name: dummy-alluxio-alluxio-csi-fuse-pvc spec: storageClassName: dummy-alluxio-csi-storage-class + accessModes: + - ReadWriteOnce resources: requests: storage: 1Mi # The storage here is only for mount, so the size doesn't matter