Running a Migration Before an Upgrade
A chart must run a database migration Job before the new Deployment is applied on every upgrade. What Helm feature does that?
Choose one answer
An initContainer in the chart's NOTES.txt.
initContainer
A templates/tests/ directory containing the migration Job.
templates/tests/
A Job with the helm.sh/hook: pre-upgrade annotation.
helm.sh/hook: pre-upgrade
A dependencies entry in Chart.yaml.
dependencies
Chart.yaml