From 87431e0b079d6f5f004192d48fc2c198aa318498 Mon Sep 17 00:00:00 2001 From: jessebot Date: Thu, 6 Jul 2023 12:22:09 +0200 Subject: [PATCH] adjust configmap helm hook weight to be -3 so its executed before pods/jobs --- charts/mastodon/Chart.yaml | 2 +- charts/mastodon/templates/configmap-env.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/mastodon/Chart.yaml b/charts/mastodon/Chart.yaml index 210b0d2..d49c3a7 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.2 +version: 4.0.3 # 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 25b0fb4..ac61da7 100644 --- a/charts/mastodon/templates/configmap-env.yaml +++ b/charts/mastodon/templates/configmap-env.yaml @@ -6,6 +6,7 @@ metadata: {{- include "mastodon.labels" . | nindent 4 }} annotations: "helm.sh/hook": pre-install + "helm.sh/hook-weight": "-3" data: {{- if .Values.postgresql.enabled }} DB_HOST: {{ template "mastodon.postgresql.fullname" . }}