mirror of
https://github.com/bitnami/charts.git
synced 2026-03-07 08:07:55 +08:00
[bitnami/argo-cd] Disable passing redis password when there is none (#8440)
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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" . }}
|
||||
|
||||
Reference in New Issue
Block a user