From 4b2ec4a2dc3348ff27f74f442e408d92075bf7c2 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Mon, 2 Nov 2020 06:16:51 +0100 Subject: [PATCH] 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 -postgresql name as secret name. --- chart/templates/cronjob-media-remove.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/cronjob-media-remove.yaml b/chart/templates/cronjob-media-remove.yaml index 5d78f3395..8a01a2551 100644 --- a/chart/templates/cronjob-media-remove.yaml +++ b/chart/templates/cronjob-media-remove.yaml @@ -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"