diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e7c5304..451e5432 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Fixed + +- Helm chart: Fix helm hook for db migration job + ## v1.2.14 (2023-04-19) ### Fixed diff --git a/helm/oncall/templates/engine/job-migrate.yaml b/helm/oncall/templates/engine/job-migrate.yaml index b92d2939..acf7fb2e 100644 --- a/helm/oncall/templates/engine/job-migrate.yaml +++ b/helm/oncall/templates/engine/job-migrate.yaml @@ -5,7 +5,7 @@ metadata: {{- if .Values.migrate.useHook }} name: {{ printf "%s-migrate" (include "oncall.engine.fullname" .) }} annotations: - "helm.sh/hook": post-install,post-upgrade + "helm.sh/hook": pre-install,pre-upgrade {{- else }} name: {{ printf "%s-migrate-%s" (include "oncall.engine.fullname" .) (now | date "2006-01-02-15-04-05") }} {{- end }}