diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index f79c4b29..89a2ae35 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nextcloud -version: 5.3.2 +version: 5.3.3 appVersion: 29.0.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 d50338d5..4ad9cc3b 100644 --- a/charts/nextcloud/README.md +++ b/charts/nextcloud/README.md @@ -116,6 +116,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.existingSecret.smtpHostKey` | Name of the key that contains the SMTP hostname | `nil` | +| `nextcloud.existingSecret.tokenKey` | Name of the key that contains the nextcloud metrics token | `''` | | `nextcloud.update` | Trigger update if custom command is used | `0` | | `nextcloud.containerPort` | Customize container port when not running as root | `80` | | `nextcloud.datadir` | nextcloud data dir location | `/var/www/html/data` | diff --git a/charts/nextcloud/templates/metrics/deployment.yaml b/charts/nextcloud/templates/metrics/deployment.yaml index 27dae552..50e5cc50 100644 --- a/charts/nextcloud/templates/metrics/deployment.yaml +++ b/charts/nextcloud/templates/metrics/deployment.yaml @@ -40,12 +40,12 @@ spec: image: "{{ .Values.metrics.image.repository }}:{{ .Values.metrics.image.tag }}" imagePullPolicy: {{ .Values.metrics.image.pullPolicy }} env: - {{- if .Values.metrics.token }} + {{- if or .Values.metrics.token .Values.nextcloud.existingSecret.tokenKey }} - name: NEXTCLOUD_AUTH_TOKEN valueFrom: secretKeyRef: name: {{ .Values.nextcloud.existingSecret.secretName | default (include "nextcloud.fullname" .) }} - key: {{ .Values.nextcloud.existingSecret.tokenKey }} + key: {{ .Values.nextcloud.existingSecret.tokenKey | default "nextcloud-token" }} {{- else }} - name: NEXTCLOUD_USERNAME valueFrom: diff --git a/charts/nextcloud/values.yaml b/charts/nextcloud/values.yaml index 4e5eebcb..a75503d9 100644 --- a/charts/nextcloud/values.yaml +++ b/charts/nextcloud/values.yaml @@ -83,7 +83,7 @@ nextcloud: # secretName: nameofsecret usernameKey: nextcloud-username passwordKey: nextcloud-password - tokenKey: nextcloud-token + tokenKey: "" smtpUsernameKey: smtp-username smtpPasswordKey: smtp-password smtpHostKey: smtp-host