Commit 5984355
committed
fix(orchestrator): use versioned name for the DB creation Job to avoid immutable upgrade errors (#427)
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.
Signed-off-by: Gustavo Lira <guga.java@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Lucas <lyoon@redhat.com>1 parent e767157 commit 5984355
5 files changed
Lines changed: 8 additions & 8 deletions
File tree
- .github/actions/test-charts
- charts/backstage
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
0 commit comments