Skip to content

Commit e767157

Browse files
gustavoliraclaude
andauthored
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>
1 parent c2d5793 commit e767157

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

charts/backstage/templates/sonataflows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ spec:
8585
apiVersion: batch/v1
8686
kind: Job
8787
metadata:
88-
name: {{ .Release.Name }}-create-sonataflow-database
88+
name: {{ .Release.Name }}-create-sf-db-{{ .Chart.Version | replace "." "-" }}
8989
namespace: {{ .Release.Namespace }}
9090
spec:
9191
activeDeadlineSeconds: 120

0 commit comments

Comments
 (0)