helm-chart: fix eurooffice data pvc should be optiional

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L.
2026-08-17 13:01:16 +02:00
parent 3d63ac6fa8
commit c707e99ff0
2 changed files with 8 additions and 0 deletions
@@ -1,3 +1,4 @@
{{- if eq .Values.EUROOFFICE_ENABLED "yes" }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
@@ -14,3 +15,4 @@ spec:
resources:
requests:
storage: {{ .Values.EUROOFFICE_DATA_STORAGE_SIZE }}
{{- end }}
+6
View File
@@ -509,6 +509,12 @@ find ./ -name "*nextcloud-aio-elasticsearch-persistentvolumeclaim.yaml" -exec se
# shellcheck disable=SC1083
find ./ -name "*nextcloud-aio-elasticsearch-persistentvolumeclaim.yaml" -exec sed -i "$ a {{- end }}" \{} \;
# Additional case for Eurooffice-data
# shellcheck disable=SC1083
find ./ -name "*nextcloud-aio-eurooffice-data-persistentvolumeclaim.yaml" -exec sed -i "1i\\{{- if eq .Values.EUROOFFICE_ENABLED \"yes\" }}" \{} \;
# shellcheck disable=SC1083
find ./ -name "*nextcloud-aio-eurooffice-data-persistentvolumeclaim.yaml" -exec sed -i "$ a {{- end }}" \{} \;
cat << EOL > /tmp/security.conf
# The items below only work in container context
allowPrivilegeEscalation: false