Commit 0062de3
committed
feat(helm): add Helm hook annotations to migration Job
Add Helm hook annotations to the migration Job template to ensure proper
recreation during upgrades and prevent immutable field errors.
Changes:
- Add helm.sh/hook: pre-install,pre-upgrade to run Job before install/upgrade
- Add helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded to
remove old Jobs and clean up succeeded ones
- Bump chart version to 0.9.1
- Update CHANGELOG with migration job fix details
This eliminates upgrade failures caused by Kubernetes rejecting changes to
immutable spec.template fields in existing Job resources.
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>1 parent f2183b1 commit 0062de3
File tree
3 files changed
+17
-4
lines changed- charts/mcp-stack
- templates
3 files changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
9 | 20 | | |
10 | 21 | | |
11 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
64 | | - | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
69 | | - | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | | - | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
0 commit comments