Skip to content

Conversation

@ChrisPC-39
Copy link
Collaborator

@ChrisPC-39 ChrisPC-39 commented Dec 3, 2025

🧩 Fix: Add Helm Hook Annotations to Migration Job

Summary

This pull request updates the migration Job template in the Helm chart to ensure that migration jobs are properly recreated during upgrades and no longer cause immutable field errors.

Purpose:

  1. Ensures the Job runs automatically before Helm installs or upgrades the release.
  2. Instructs Helm to remove any previous migration Job before creating a new one, preventing the field is immutable error during upgrades.

🧪 Testing

Verified that a fresh helm install creates the migration Job and runs successfully.
Verified that subsequent helm upgrade commands no longer fail with the immutable field error.
Confirmed that only one migration Job exists after upgrade (old one is removed automatically).

@ChrisPC-39 ChrisPC-39 added devops DevOps activities (containers, automation, deployment, makefiles, etc) helm Helm chart labels Dec 3, 2025
@ChrisPC-39 ChrisPC-39 marked this pull request as draft December 3, 2025 11:05
Chris PC added 2 commits December 3, 2025 13:09
Signed-off-by: Chris PC <[email protected]>
@ChrisPC-39 ChrisPC-39 self-assigned this Dec 3, 2025
@ChrisPC-39 ChrisPC-39 marked this pull request as ready for review December 3, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops DevOps activities (containers, automation, deployment, makefiles, etc) helm Helm chart

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants