From 7968fab485744a76814f19238de4bb63c559228c Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Mon, 6 Nov 2023 15:17:41 +0100 Subject: [PATCH] fix: request shared RWX nextcloud volume Signed-off-by: Richard Steinmetz --- .../nextcloud-aio-nextcloud-persistentvolumeclaim.yaml | 2 +- nextcloud-aio-helm-chart/update-helm.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-nextcloud-persistentvolumeclaim.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-nextcloud-persistentvolumeclaim.yaml index 51013bd1..320d719f 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-nextcloud-persistentvolumeclaim.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-nextcloud-persistentvolumeclaim.yaml @@ -10,7 +10,7 @@ spec: storageClassName: {{ .Values.STORAGE_CLASS }} {{- end }} accessModes: - - ReadWriteOnce + - ReadWriteMany resources: requests: storage: {{ .Values.NEXTCLOUD_STORAGE_SIZE }} diff --git a/nextcloud-aio-helm-chart/update-helm.sh b/nextcloud-aio-helm-chart/update-helm.sh index 8d19fa16..df65eba7 100755 --- a/nextcloud-aio-helm-chart/update-helm.sh +++ b/nextcloud-aio-helm-chart/update-helm.sh @@ -131,6 +131,7 @@ find ./ -name '*deployment.yaml' -exec sed -i "s|emptyDir:|emptyDir: \{\}|" \{} find ./ -name '*deployment.yaml' -exec sed -i "/hostPort:/d" \{} \; # shellcheck disable=SC1083 find ./ -name '*persistentvolumeclaim.yaml' -exec sed -i "s|ReadOnlyMany|ReadWriteOnce|" \{} \; +sed -i "s|ReadWriteOnce|ReadWriteMany|" nextcloud-aio-nextcloud-persistentvolumeclaim.yaml # shellcheck disable=SC1083 find ./ -name '*persistentvolumeclaim.yaml' -exec sed -i "/accessModes:/i\ \ {{- if .Values.STORAGE_CLASS }}" \{} \; # shellcheck disable=SC1083