Skip to content

Commit 4fbe981

Browse files
gustavoliraclaude
andcommitted
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

File tree

charts/backstage/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ sources: []
4747
# Versions are expected to follow Semantic Versioning (https://semver.org/)
4848
# Note that when this chart is published to https://github.com/openshift-helm-charts/charts
4949
# it will follow the RHDH versioning 1.y.z
50-
version: 5.12.3
50+
version: 5.12.4

charts/backstage/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# RHDH Backstage Helm Chart for OpenShift
33

4-
![Version: 5.12.3](https://img.shields.io/badge/Version-5.12.3-informational?style=flat-square)
4+
![Version: 5.12.4](https://img.shields.io/badge/Version-5.12.4-informational?style=flat-square)
55
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
66

77
A Helm chart for deploying Red Hat Developer Hub, which is a Red Hat supported version of Backstage.
@@ -29,7 +29,7 @@ For the **Generally Available** version of this chart, see:
2929
helm repo add bitnami https://charts.bitnami.com/bitnami
3030
helm repo add redhat-developer https://redhat-developer.github.io/rhdh-chart
3131

32-
helm install my-backstage redhat-developer/backstage --version 5.12.3
32+
helm install my-backstage redhat-developer/backstage --version 5.12.4
3333
```
3434

3535
## Introduction

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)