3
0
mirror of https://github.com/mastodon/chart synced 2025-05-17 20:43:21 +00:00

Simplification

This commit is contained in:
Tim Campbell 2025-04-08 15:36:47 +02:00
parent 4707ac0b20
commit 93e07b9fdd

View File

@ -102,15 +102,11 @@ spec:
- name: "REDIS_PASSWORD"
valueFrom:
secretKeyRef:
{{- if .prepare }}
{{- if and (not .Values.redis.enabled) (and (not .Values.redis.auth.existingSecret) (not .Values.redis.existingSecret)) (.Values.redis.auth.password) }}
{{- if and (.prepare) (not .Values.redis.enabled) (and (not .Values.redis.auth.existingSecret) (not .Values.redis.existingSecret)) (.Values.redis.auth.password) }}
name: {{ template "mastodon.redis.secretName" . }}-pre-install
{{- else }}
name: {{ template "mastodon.redis.secretName" . }}
{{- end }}
{{- else }}
name: {{ template "mastodon.redis.secretName" . }}
{{- end }}
key: redis-password
{{- if .preDeploy }}
- name: "SKIP_POST_DEPLOYMENT_MIGRATIONS"