From 3d024c6332fccd33b3422218448669f8abdc4148 Mon Sep 17 00:00:00 2001 From: Ai Vong Date: Fri, 9 Oct 2026 08:13:36 -0500 Subject: [PATCH] fix(charts): run Postgres client init steps on the CloudNativePG minimal image --- charts/openhands/charts/automation/templates/deployment.yaml | 2 +- .../charts/integrations-hub/templates/deployment.yaml | 2 +- .../charts/plugin-directory/templates/_init-containers.yaml | 4 ++-- .../charts/runtime-api/templates/_init-containers.yaml | 4 ++-- charts/openhands/templates/_init-containers.yaml | 4 ++-- charts/openhands/values.yaml | 2 +- replicated/openhands.yaml | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/charts/openhands/charts/automation/templates/deployment.yaml b/charts/openhands/charts/automation/templates/deployment.yaml index 513565478..25bcfd5d0 100644 --- a/charts/openhands/charts/automation/templates/deployment.yaml +++ b/charts/openhands/charts/automation/templates/deployment.yaml @@ -124,7 +124,7 @@ spec: {{- else if .Values.postgresql.enabled }} # Wait for the automation's own PostgreSQL subchart to be ready - name: wait-for-postgres - image: bitnamilegacy/postgresql:latest + image: ghcr.io/cloudnative-pg/postgresql:17.11-202610050823-minimal-trixie command: ['sh', '-c'] args: - | diff --git a/charts/openhands/charts/integrations-hub/templates/deployment.yaml b/charts/openhands/charts/integrations-hub/templates/deployment.yaml index 15a510ff1..9ddb2d996 100644 --- a/charts/openhands/charts/integrations-hub/templates/deployment.yaml +++ b/charts/openhands/charts/integrations-hub/templates/deployment.yaml @@ -109,7 +109,7 @@ spec: {{- else if .Values.postgresql.enabled }} # Wait for the service's own PostgreSQL subchart to be ready - name: wait-for-postgres - image: bitnamilegacy/postgresql:latest + image: ghcr.io/cloudnative-pg/postgresql:17.11-202610050823-minimal-trixie command: ['sh', '-c'] args: - | diff --git a/charts/openhands/charts/plugin-directory/templates/_init-containers.yaml b/charts/openhands/charts/plugin-directory/templates/_init-containers.yaml index ba5a108ee..341d853c9 100644 --- a/charts/openhands/charts/plugin-directory/templates/_init-containers.yaml +++ b/charts/openhands/charts/plugin-directory/templates/_init-containers.yaml @@ -1,7 +1,7 @@ {{- define "plugin-directory.dbInitContainers" }} {{- if .Values.databaseMigrations.waitForDatabase }} - name: wait-for-db - image: "bitnamilegacy/postgresql:latest" + image: "ghcr.io/cloudnative-pg/postgresql:17.11-202610050823-minimal-trixie" command: ['sh', '-c'] args: - | @@ -16,7 +16,7 @@ {{- end }} {{- if .Values.databaseMigrations.createDatabases }} - name: create-db - image: "bitnamilegacy/postgresql:latest" + image: "ghcr.io/cloudnative-pg/postgresql:17.11-202610050823-minimal-trixie" command: ['sh', '-c'] args: - | diff --git a/charts/openhands/charts/runtime-api/templates/_init-containers.yaml b/charts/openhands/charts/runtime-api/templates/_init-containers.yaml index b0354175d..5ebe2efdb 100644 --- a/charts/openhands/charts/runtime-api/templates/_init-containers.yaml +++ b/charts/openhands/charts/runtime-api/templates/_init-containers.yaml @@ -1,7 +1,7 @@ {{- define "runtime-api.dbInitContainers" }} {{- if .Values.databaseMigrations.waitForDatabase }} - name: wait-for-db - image: "bitnamilegacy/postgresql:latest" + image: "ghcr.io/cloudnative-pg/postgresql:17.11-202610050823-minimal-trixie" command: ['sh', '-c'] args: - | @@ -18,7 +18,7 @@ {{- end }} {{- if .Values.databaseMigrations.createDatabases }} - name: create-db - image: "bitnamilegacy/postgresql:latest" + image: "ghcr.io/cloudnative-pg/postgresql:17.11-202610050823-minimal-trixie" command: ['sh', '-c'] args: - | diff --git a/charts/openhands/templates/_init-containers.yaml b/charts/openhands/templates/_init-containers.yaml index fcb308a26..c2bac4f8c 100644 --- a/charts/openhands/templates/_init-containers.yaml +++ b/charts/openhands/templates/_init-containers.yaml @@ -1,7 +1,7 @@ {{- define "openhands.dbInitContainers" }} {{- if .Values.databaseMigrations.waitForDatabase }} - name: wait-for-db - image: "bitnamilegacy/postgresql:latest" + image: "ghcr.io/cloudnative-pg/postgresql:17.11-202610050823-minimal-trixie" command: ['sh', '-c'] args: - | @@ -18,7 +18,7 @@ {{- end }} {{- if .Values.databaseMigrations.createDatabases }} - name: create-db - image: "bitnamilegacy/postgresql:latest" + image: "ghcr.io/cloudnative-pg/postgresql:17.11-202610050823-minimal-trixie" command: ['sh', '-c'] args: - | diff --git a/charts/openhands/values.yaml b/charts/openhands/values.yaml index 536e1d8b5..04b405803 100644 --- a/charts/openhands/values.yaml +++ b/charts/openhands/values.yaml @@ -539,7 +539,7 @@ keycloak: - name: KC_DB_URL_PROPERTIES value: 'sslmode={{ .Values.externalDatabase.sslMode | default "prefer" }}' waitForDb: - image: "bitnamilegacy/postgresql:latest" + image: "ghcr.io/cloudnative-pg/postgresql:17.11-202610050823-minimal-trixie" initContainers: - name: wait-for-db # The Bitnami Keycloak subchart renders initContainers through common.tplvalues.render, diff --git a/replicated/openhands.yaml b/replicated/openhands.yaml index 8089a4f19..747833dc3 100644 --- a/replicated/openhands.yaml +++ b/replicated/openhands.yaml @@ -192,7 +192,7 @@ spec: image: repository: 'proxy/{{repl LicenseFieldValue "appSlug"}}/docker.io/bitnamilegacy/keycloak-config-cli' waitForDb: - image: 'images.r9.all-hands.dev/proxy/{{repl LicenseFieldValue "appSlug"}}/docker.io/bitnamilegacy/postgresql:latest' + image: 'images.r9.all-hands.dev/proxy/{{repl LicenseFieldValue "appSlug"}}/ghcr.io/cloudnative-pg/postgresql:17.11-202610050823-minimal-trixie' # caBundle wiring: mount the trust-manager Bundle ConfigMap and point # Keycloak's truststore at the merged PEM. Repeats the chart's default # KC_* env vars because helm value merging replaces arrays — adding