diff --git a/charts/argo-cd/Chart.yaml b/charts/argo-cd/Chart.yaml index a5b0bb84..d810693f 100644 --- a/charts/argo-cd/Chart.yaml +++ b/charts/argo-cd/Chart.yaml @@ -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 diff --git a/charts/argo-cd/templates/_helpers.tpl b/charts/argo-cd/templates/_helpers.tpl index d13928a8..3b620aa9 100644 --- a/charts/argo-cd/templates/_helpers.tpl +++ b/charts/argo-cd/templates/_helpers.tpl @@ -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 -}}