diff --git a/charts/nextcloud/README.md b/charts/nextcloud/README.md index c0fac696..ef6ea264 100644 --- a/charts/nextcloud/README.md +++ b/charts/nextcloud/README.md @@ -74,6 +74,7 @@ The following table lists the configurable parameters of the nextcloud chart and | `nextcloud.existingSecret.smtpUsernameKey` | Name of the key that contains the SMTP username | `nil` | | `nextcloud.existingSecret.smtpPasswordKey` | Name of the key that contains the SMTP password | `nil` | | `nextcloud.update` | Trigger update if custom command is used | `0` | +| `nextcloud.initLock` | Use a lock while updating the html volume, so other containers will wait | `false` | | `nextcloud.containerPort` | Customize container port when not running as root | `80` | | `nextcloud.datadir` | nextcloud data dir location | `/var/www/html/data` | | `nextcloud.mail.enabled` | Whether to enable/disable email settings | `false` | diff --git a/charts/nextcloud/templates/_helpers.tpl b/charts/nextcloud/templates/_helpers.tpl index 4635374b..768e6f5c 100644 --- a/charts/nextcloud/templates/_helpers.tpl +++ b/charts/nextcloud/templates/_helpers.tpl @@ -156,6 +156,10 @@ Create environment variables used to configure the nextcloud container as well a - name: NEXTCLOUD_UPDATE value: {{ .Values.nextcloud.update | quote }} {{- end }} +{{- if .Values.nextcloud.initLock }} +- name: NEXTCLOUD_INIT_LOCK + value: "true" +{{- end }} - name: NEXTCLOUD_DATA_DIR value: {{ .Values.nextcloud.datadir | quote }} {{- if .Values.nextcloud.mail.enabled }} diff --git a/charts/nextcloud/values.yaml b/charts/nextcloud/values.yaml index 912e8f4f..994f52f1 100644 --- a/charts/nextcloud/values.yaml +++ b/charts/nextcloud/values.yaml @@ -83,6 +83,7 @@ nextcloud: # smtpUsernameKey: smtp_username # smtpPasswordKey: smtp_password update: 0 + initLock: false # If web server is not binding default port, you can define it # containerPort: 8080 datadir: /var/www/html/data