feat(argo-cd): Add ability to use an external redis instance (#1150)
Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
f47bab3acc
commit
58926e3d79
11 changed files with 88 additions and 10 deletions
|
|
@ -270,3 +270,17 @@ Create the name of the configmap to use
|
|||
{{ default "argocd-notifications-cm" .Values.notifications.cm.name }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "argo-cd.redisPasswordEnv" -}}
|
||||
{{- if or .Values.externalRedis.password .Values.externalRedis.existingSecret }}
|
||||
- name: REDIS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
{{- if .Values.externalRedis.existingSecret }}
|
||||
name: {{ .Values.externalRedis.existingSecret }}
|
||||
{{- else }}
|
||||
name: {{ template "argo-cd.redis.fullname" . }}
|
||||
{{- end }}
|
||||
key: redis-password
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue