Skip to content

Commit

Permalink
chore: Prevent displaying constant diffs for nextcloud-token in ArgoCD (
Browse files Browse the repository at this point in the history
nextcloud#554)

* chore: Prevent displaying constant diffs for nextcloud-token in ArgoCD

When metrics are not enabled, the use of randAlphaNum was causing constant diffs for nextcloud-token in ArgoCD. To mitigate this issue, now nextcloud-token won't be configured when metrics are not enabled.

Signed-off-by: kahirokunn <[email protected]>

* Update charts/nextcloud/templates/secrets.yaml

Co-authored-by: JesseBot <[email protected]>
Signed-off-by: kahirokunn <[email protected]>

* Update charts/nextcloud/Chart.yaml

Co-authored-by: JesseBot <[email protected]>
Signed-off-by: kahirokunn <[email protected]>

---------

Signed-off-by: kahirokunn <[email protected]>
Signed-off-by: JesseBot <[email protected]>
Co-authored-by: JesseBot <[email protected]>
  • Loading branch information
2 people authored and raynay-r committed Jun 28, 2024
1 parent 68b9a51 commit 6625ecc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/nextcloud/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ data:
{{- else }}
nextcloud-password: {{ randAlphaNum 10 | b64enc | quote }}
{{- end }}
{{- with .Values.metrics.token }}
nextcloud-token: {{ . | b64enc | quote }}
{{- else }}
{{- if and .Values.metrics.enabled .Values.metrics.token }}
nextcloud-token: {{ .Values.metrics.token | b64enc | quote }}
{{- else if and .Values.metrics.enabled (not .Values.metrics.token) }}
nextcloud-token: {{ randAlphaNum 10 | b64enc | quote }}
{{- end }}
{{- if .Values.nextcloud.mail.enabled }}
Expand Down

0 comments on commit 6625ecc

Please sign in to comment.