diff --git a/templates/configmap-env.yaml b/templates/configmap-env.yaml index fbb8788..ac61da7 100644 --- a/templates/configmap-env.yaml +++ b/templates/configmap-env.yaml @@ -4,6 +4,9 @@ metadata: name: {{ include "mastodon.fullname" . }}-env labels: {{- 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" . }}