fix(orchestrator): add Helm hook annotations to sonataflow DB creation Job - #409
fix(orchestrator): add Helm hook annotations to sonataflow DB creation Job#409Fortune-Ndlovu wants to merge 1 commit into
Conversation
…n Job Kubernetes Jobs have immutable spec.template fields, so `helm upgrade` fails when the Job spec changes between chart versions. Adding post-install/post-upgrade hook with before-hook-creation delete policy ensures the old Job is removed before the new one is created.
Code Review by Qodo
1. Hook can fail upgrades
|
|
Review Summary by QodoAdd Helm hook annotations to sonataflow DB Job
WalkthroughsDescription• Add Helm hook annotations to sonataflow DB creation Job • Ensures old Job removed before new one created during upgrades • Prevents helm upgrade failures due to immutable spec.template fields • Bump backstage chart version to 5.13.3 Diagramflowchart LR
A["sonataflows.yaml Job"] -- "add post-install/post-upgrade hooks" --> B["Helm annotations"]
B -- "before-hook-creation delete policy" --> C["Old Job removed before upgrade"]
C -- "prevents immutable spec errors" --> D["Successful helm upgrade"]
File Changes1. charts/backstage/Chart.yaml
|
|
nice test pass closing PR adding changes to another PR |



Description of the change
Kubernetes Jobs have immutable spec.template fields, so
helm upgradefails when the Job spec changes between chart versions. Adding post-install/post-upgrade hook with before-hook-creation delete policy ensures the old Job is removed before the new one is created.Which issue(s) does this PR fix or relate to
How to test changes / Special notes to the reviewer
Checklist
Chart.yamlaccording to Semantic Versioning.values.yamland added to the corresponding README.md. The pre-commit utility can be used to generate the necessary content. Runpre-commit run --all-filesto run the hooks and then push any resulting changes. The pre-commit Workflow will enforce this and warn you if needed.pre-commithook.ct lintcommand.