3
0
mirror of https://github.com/mastodon/chart synced 2025-05-18 13:03:21 +00:00
mastodon-chart-mirror/templates/secret-redis.yaml
Jeremiah Lee d5edbeb73e Add existing Redis instance password to new Secret
Store an external, existing Redis instance password in a Secret via the values.yaml in the same way an existing postgresql.auth.password value gets stored in a Secret.

Fixes mastodon/chart#80
2023-07-19 19:57:38 +02:00

16 lines
429 B
YAML

{{- if not .Values.redis.enabled }}
{{- if and (not .Values.redis.auth.existingSecret) (not .Values.redis.existingSecret) }}
{{- if .Values.redis.auth.password }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "mastodon.redis.secretName" . }}
labels:
{{- include "mastodon.labels" . | nindent 4 }}
type: Opaque
data:
redis-password: "{{ .Values.redis.auth.password | b64enc }}"
{{- end }}
{{- end }}
{{- end }}