fix(argo-cd): Use correct Secret name for optional (external-)Redis auth (#3294)

pull/3302/head argo-cd-8.0.1
Marco Maurer (-Kilchhofer) 2025-05-12 20:29:59 +02:00 committed by GitHub
parent 6e4a23f0ce
commit 7b21cf5f84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View File

@ -3,7 +3,7 @@ appVersion: v3.0.0
kubeVersion: ">=1.25.0-0"
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd
version: 8.0.0
version: 8.0.1
home: https://github.com/argoproj/argo-helm
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
sources:
@ -26,5 +26,5 @@ annotations:
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
artifacthub.io/changes: |
- kind: changed
description: Bump argo-cd to v3.0.0
- kind: fixed
description: Use correct Secret name for optional (external-)Redis authentication

View File

@ -280,12 +280,13 @@ ipFamilies: {{ toYaml . | nindent 4 }}
secretKeyRef of env variable REDIS_USERNAME
*/}}
{{- define "argo-cd.redisUsernameSecretRef" -}}
{{- if and .Values.externalRedis.host -}}
name: {{ default (include "argo-cd.redis.fullname" .) .Values.externalRedis.existingSecret }}
{{- if .Values.externalRedis.host -}}
name: {{ default "argocd-redis" .Values.externalRedis.existingSecret }}
key: redis-username
optional: true
optional: {{ if .Values.externalRedis.username }}false{{ else }}true{{ end }}
{{- else -}}
name: {{ include "argo-cd.redis.fullname" . }}
name: "argocd-redis"
key: redis-username
optional: true
{{- end -}}