Fix postrgres secret name for cronjob (#15072)

The cronjob tries to get key from `mastodon` secret instead of
`mastodon-postgresql` - so the cronjob fails with this error:

Error: couldn't find key postgresql-password in Secret [NS]/mastodon

Another solution is to save the postgres password in mastodon secret,
but that means that the password is placed in two places.

Postgresql use <fullname>-postgresql name as secret name.
lolsob-rspec
Patrice Ferlet 2020-11-02 06:16:51 +01:00 committed by GitHub
parent 9500d00e5f
commit 1e3c688133
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ spec:
{{- if .Values.postgresql.enabled }}
name: {{ .Release.Name }}-postgresql
{{- else }}
name: {{ template "mastodon.fullname" . }}
name: {{ template "mastodon.fullname" . }}-postgresql
{{- end }}
key: postgresql-password
- name: "REDIS_PASSWORD"