diff --git a/bitnami/argo-cd/templates/application-controller/deployment.yaml b/bitnami/argo-cd/templates/application-controller/deployment.yaml index f07ab6fe6e..2ba6ead87b 100644 --- a/bitnami/argo-cd/templates/application-controller/deployment.yaml +++ b/bitnami/argo-cd/templates/application-controller/deployment.yaml @@ -87,12 +87,14 @@ spec: else info "Connected to the Redis instance" fi + {{- if include "argocd.redis.auth.enabled" . }} env: - name: REDISCLI_AUTH valueFrom: secretKeyRef: name: {{ include "argocd.redis.secretName" . }} key: {{ include "argocd.redis.secretPasswordKey" . }} + {{- end }} {{- if .Values.controller.initContainers }} {{- include "common.tplvalues.render" (dict "value" .Values.controller.initContainers "context" $) | nindent 8 }} {{- end }} diff --git a/bitnami/argo-cd/templates/repo-server/deployment.yaml b/bitnami/argo-cd/templates/repo-server/deployment.yaml index e37e26a658..f6003798d5 100644 --- a/bitnami/argo-cd/templates/repo-server/deployment.yaml +++ b/bitnami/argo-cd/templates/repo-server/deployment.yaml @@ -105,12 +105,14 @@ spec: else info "Connected to the Redis instance" fi + {{- if include "argocd.redis.auth.enabled" . }} env: - name: REDISCLI_AUTH valueFrom: secretKeyRef: name: {{ include "argocd.redis.secretName" . }} key: {{ include "argocd.redis.secretPasswordKey" . }} + {{- end }} {{- if .Values.repoServer.initContainers }} {{- include "common.tplvalues.render" (dict "value" .Values.repoServer.initContainers "context" $) | nindent 8 }} {{- end }} diff --git a/bitnami/argo-cd/templates/server/deployment.yaml b/bitnami/argo-cd/templates/server/deployment.yaml index 0091c780ee..d8f46ac5a2 100644 --- a/bitnami/argo-cd/templates/server/deployment.yaml +++ b/bitnami/argo-cd/templates/server/deployment.yaml @@ -108,12 +108,14 @@ spec: else info "Connected to the Redis instance" fi + {{- if include "argocd.redis.auth.enabled" . }} env: - name: REDISCLI_AUTH valueFrom: secretKeyRef: name: {{ include "argocd.redis.secretName" . }} key: {{ include "argocd.redis.secretPasswordKey" . }} + {{- end }} containers: - name: argocd-server image: {{ include "argocd.image" . }}