diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index 8be97b84..9d67870a 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nextcloud -version: 4.5.8 +version: 4.5.9 appVersion: 27.1.4 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/charts/nextcloud/README.md b/charts/nextcloud/README.md index c2e5be06..85d5c673 100644 --- a/charts/nextcloud/README.md +++ b/charts/nextcloud/README.md @@ -262,6 +262,7 @@ Persistent Volume Claims are used to keep the data across deployments. This is k | Parameter | Description | Default | |----------------------------------------------------------------------|----------------------------------------------------------------------------------------|----------------------------------------------| | `persistence.enabled` | Enable persistence using PVC | `false` | +| `persistence.immutableImage` | Does not mount the `/var/www` and `/var/www/html` directories | `false` | | `persistence.annotations` | PVC annotations | `{}` | | `persistence.storageClass` | PVC Storage Class for nextcloud volume | `nil` (uses alpha storage class annotation) | | `persistence.existingClaim` | An Existing PVC name for nextcloud volume | `nil` (uses alpha storage class annotation) | diff --git a/charts/nextcloud/templates/_helpers.tpl b/charts/nextcloud/templates/_helpers.tpl index d250589c..38c59481 100644 --- a/charts/nextcloud/templates/_helpers.tpl +++ b/charts/nextcloud/templates/_helpers.tpl @@ -240,12 +240,14 @@ Create environment variables used to configure the nextcloud container as well a Create volume mounts for the nextcloud container as well as the cron sidecar container. */}} {{- define "nextcloud.volumeMounts" -}} +{{- if not .Values.persistence.immutableImage }} - name: nextcloud-main mountPath: /var/www/ subPath: {{ ternary "root" (printf "%s/root" .Values.nextcloud.persistence.subPath) (empty .Values.nextcloud.persistence.subPath) }} - name: nextcloud-main mountPath: /var/www/html subPath: {{ ternary "html" (printf "%s/html" .Values.nextcloud.persistence.subPath) (empty .Values.nextcloud.persistence.subPath) }} +{{- end }} {{- if and .Values.persistence.nextcloudData.enabled .Values.persistence.enabled }} - name: nextcloud-data mountPath: {{ .Values.nextcloud.datadir }} diff --git a/charts/nextcloud/values.yaml b/charts/nextcloud/values.yaml index 0d2d9368..d2fe930c 100644 --- a/charts/nextcloud/values.yaml +++ b/charts/nextcloud/values.yaml @@ -380,6 +380,7 @@ service: persistence: # Nextcloud Data (/var/www/html) enabled: false + immutableImage: false annotations: {} ## nextcloud data Persistent Volume Storage Class ## If defined, storageClassName: