github.com/argoproj/argo-cd@v1.8.7/util/helm/testdata/redis/templates/secrets.yaml (about) 1 {{- if and .Values.usePassword (not .Values.existingSecret) -}} 2 apiVersion: v1 3 kind: Secret 4 metadata: 5 name: {{ template "redis.fullname" . }} 6 labels: 7 app: {{ template "redis.name" . }} 8 chart: {{ template "redis.chart" . }} 9 release: "{{ .Release.Name }}" 10 heritage: "{{ .Release.Service }}" 11 type: Opaque 12 data: 13 {{- if .Values.passwordContent }} 14 redis-password: {{ .Values.passwordContent | quote }} 15 {{- else if .Values.password }} 16 redis-password: {{ .Values.password | b64enc | quote }} 17 {{- else }} 18 redis-password: {{ randAlphaNum 10 | b64enc | quote }} 19 {{- end }} 20 {{- end -}}