Commit 4fbe981
fix(orchestrator): use versioned name for the DB creation Job to avoid immutable upgrade errors
The `<release>-create-sonataflow-database` Job uses a fixed name across
chart versions. When a field in the rendered pod spec changes between
versions (e.g. the pinned PostgreSQL image digest), an in-place
`helm upgrade` of an Orchestrator-enabled release tries to patch the
Job's immutable `spec.template` and fails:
Job.batch "<release>-create-sonataflow-database" is invalid:
spec.template: ... field is immutable
Use a versioned name `<release>-create-sf-db-<chart-version>` so each
chart version gets a distinct Job (recreated instead of patched).
This is the minimal part of #407 needed to fix the upgrade; the
fail-hard / configurable backoffLimit changes (RHDHBUGS-2577) are
intentionally left out of the 1.10 line.
Fixes RHDHBUGS-3325. Targets 1.10.1.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Gustavo Lira <guga.java@gmail.com>1 parent 9ae8fb1 commit 4fbe981
3 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments