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
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]>
  • Loading branch information
kahirokunn committed Apr 9, 2024
1 parent 7a9687f commit ae8fe14
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 .Values.metrics.token }}
nextcloud-token: {{ .Values.metrics.token | b64enc | quote }}
{{- else if .Values.metrics.enabled }}
nextcloud-token: {{ randAlphaNum 10 | b64enc | quote }}
{{- end }}
{{- if .Values.nextcloud.mail.enabled }}
Expand Down

0 comments on commit ae8fe14

Please sign in to comment.