Skip to content

Commit

Permalink
Add nextcloud.initLock to set NEXTCLOUD_INIT_LOCK
Browse files Browse the repository at this point in the history
Signed-off-by: Remi Rampin <remi@rampin.org>
  • Loading branch information
remram44 committed Jan 27, 2023
1 parent a491977 commit d196af2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
4 changes: 4 additions & 0 deletions charts/nextcloud/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions charts/nextcloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d196af2

Please sign in to comment.