{{- 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" . }}-pre-install labels: {{- include "mastodon.labels" . | nindent 4 }} annotations: helm.sh/hook: pre-install helm.sh/hook-weight: "-5" "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded type: Opaque data: redis-password: "{{ .Values.redis.auth.password | b64enc }}" {{- end }} {{- end }} {{- end }}