argocd-helm/charts/argo-cd/templates/argocd-configs/externalredis-secret.yaml
Marco Kilchhofer 58926e3d79
feat(argo-cd): Add ability to use an external redis instance (#1150)
Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
2022-03-31 14:18:54 +02:00

11 lines
347 B
YAML

{{- if and .Values.externalRedis.password (not .Values.externalRedis.existingSecret) }}
apiVersion: v1
kind: Secret
metadata:
name: {{ template "argo-cd.redis.fullname" . }}
labels:
{{- include "argo-cd.labels" (dict "context" $) | nindent 4 }}
type: Opaque
data:
redis-password: {{ .Values.externalRedis.password | b64enc }}
{{- end }}