Skip to content

Commit 94fb143

Browse files
feat: add support for immutable image
Signed-off-by: Danny Seymour <[email protected]>
1 parent 21ec2a5 commit 94fb143

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

charts/nextcloud/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: nextcloud
3-
version: 4.5.8
3+
version: 4.5.9
44
appVersion: 27.1.4
55
description: A file sharing server that puts the control and security of your own data back into your hands.
66
keywords:

charts/nextcloud/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ Persistent Volume Claims are used to keep the data across deployments. This is k
262262
| Parameter | Description | Default |
263263
|----------------------------------------------------------------------|----------------------------------------------------------------------------------------|----------------------------------------------|
264264
| `persistence.enabled` | Enable persistence using PVC | `false` |
265+
| `persistence.immutableImage` | Does not mount the `/var/www` and `/var/www/html` directories | `false` |
265266
| `persistence.annotations` | PVC annotations | `{}` |
266267
| `persistence.storageClass` | PVC Storage Class for nextcloud volume | `nil` (uses alpha storage class annotation) |
267268
| `persistence.existingClaim` | An Existing PVC name for nextcloud volume | `nil` (uses alpha storage class annotation) |

charts/nextcloud/templates/_helpers.tpl

+2
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,14 @@ Create environment variables used to configure the nextcloud container as well a
240240
Create volume mounts for the nextcloud container as well as the cron sidecar container.
241241
*/}}
242242
{{- define "nextcloud.volumeMounts" -}}
243+
{{- if not .Values.persistence.immutableImage }}
243244
- name: nextcloud-main
244245
mountPath: /var/www/
245246
subPath: {{ ternary "root" (printf "%s/root" .Values.nextcloud.persistence.subPath) (empty .Values.nextcloud.persistence.subPath) }}
246247
- name: nextcloud-main
247248
mountPath: /var/www/html
248249
subPath: {{ ternary "html" (printf "%s/html" .Values.nextcloud.persistence.subPath) (empty .Values.nextcloud.persistence.subPath) }}
250+
{{- end }}
249251
{{- if and .Values.persistence.nextcloudData.enabled .Values.persistence.enabled }}
250252
- name: nextcloud-data
251253
mountPath: {{ .Values.nextcloud.datadir }}

charts/nextcloud/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ service:
380380
persistence:
381381
# Nextcloud Data (/var/www/html)
382382
enabled: false
383+
immutableImage: false
383384
annotations: {}
384385
## nextcloud data Persistent Volume Storage Class
385386
## If defined, storageClassName: <storageClass>

0 commit comments

Comments
 (0)