From f61a008dce57544c414c9a635c9f83b8af9887a0 Mon Sep 17 00:00:00 2001 From: jessebot Date: Thu, 6 Jul 2023 12:07:45 +0200 Subject: [PATCH] update configmap helm hook to install before everything else --- charts/mastodon/Chart.yaml | 2 +- charts/mastodon/templates/configmap-env.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/mastodon/Chart.yaml b/charts/mastodon/Chart.yaml index 66c57bf..210b0d2 100644 --- a/charts/mastodon/Chart.yaml +++ b/charts/mastodon/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 4.0.1 +version: 4.0.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/mastodon/templates/configmap-env.yaml b/charts/mastodon/templates/configmap-env.yaml index fbb8788..25b0fb4 100644 --- a/charts/mastodon/templates/configmap-env.yaml +++ b/charts/mastodon/templates/configmap-env.yaml @@ -4,6 +4,8 @@ metadata: name: {{ include "mastodon.fullname" . }}-env labels: {{- include "mastodon.labels" . | nindent 4 }} + annotations: + "helm.sh/hook": pre-install data: {{- if .Values.postgresql.enabled }} DB_HOST: {{ template "mastodon.postgresql.fullname" . }}