mirror of
https://github.com/mastodon/chart
synced 2025-05-17 20:43:21 +00:00
Simplification
This commit is contained in:
parent
4707ac0b20
commit
93e07b9fdd
|
@ -102,15 +102,11 @@ spec:
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
{{- if .prepare }}
|
{{- if and (.prepare) (not .Values.redis.enabled) (and (not .Values.redis.auth.existingSecret) (not .Values.redis.existingSecret)) (.Values.redis.auth.password) }}
|
||||||
{{- if and (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
|
name: {{ template "mastodon.redis.secretName" . }}-pre-install
|
||||||
{{- else }}
|
{{- else }}
|
||||||
name: {{ template "mastodon.redis.secretName" . }}
|
name: {{ template "mastodon.redis.secretName" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
|
||||||
name: {{ template "mastodon.redis.secretName" . }}
|
|
||||||
{{- end }}
|
|
||||||
key: redis-password
|
key: redis-password
|
||||||
{{- if .preDeploy }}
|
{{- if .preDeploy }}
|
||||||
- name: "SKIP_POST_DEPLOYMENT_MIGRATIONS"
|
- name: "SKIP_POST_DEPLOYMENT_MIGRATIONS"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user