Skip to content

Commit aef876e

Browse files
Haibreadclaude
andauthored
fix(helm): bump CNPG postgresVersion to 18 + update runbook probe image (#56)
The Helm chart was still pinning the CNPG cluster to postgres 16 while the docker-compose stack had moved to postgres:18-alpine in PR #41. Project audit flagged this as a P0 — version drift between local dev and a Helm-managed cluster means schema and tooling behaviour differ in production from what we test in dev. - deploy/helm/ai-registry/values.yaml: postgresVersion "16" → "18". Renders to ghcr.io/cloudnative-pg/postgresql:18 in the CNPG Cluster manifest (verified via `helm template`). Comment now documents the parity with PR #41 so the next bump understands the relationship. - docs/runbook.md: the two `pg-probe` snippets that spin up an ephemeral pod for psql-into-the-cluster troubleshooting were pulling postgres:16-alpine. Bumped to 18-alpine to match. Verified: `helm lint` passes, `helm template` produces `imageName: ghcr.io/cloudnative-pg/postgresql:18` for the Cluster resource. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 162e24f commit aef876e

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

deploy/helm/ai-registry/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,10 @@ cnpg:
378378
enabled: false
379379
instances: 1
380380
storageSize: 5Gi
381-
postgresVersion: "16"
381+
# Major version of the CNPG postgres image. Bumped to "18" to match the
382+
# docker-compose stack (postgres:18-alpine, see PR #41); CNPG publishes
383+
# ghcr.io/cloudnative-pg/postgresql:18 images.
384+
postgresVersion: "18"
382385

383386
# Database and owner created by the initdb bootstrap.
384387
initdb:

docs/runbook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Common root causes:
100100
kubectl get svc,ep -l cnpg.io/cluster
101101

102102
# Try the DSN from inside a temporary pod
103-
kubectl run pg-probe --rm -it --image=postgres:16-alpine -- \
103+
kubectl run pg-probe --rm -it --image=postgres:18-alpine -- \
104104
psql "$DATABASE_URL" -c 'select 1'
105105
```
106106

@@ -129,7 +129,7 @@ See §6 for backup / restore.
129129
```sh
130130
kubectl logs deploy/<release>-server | grep -iE 'migration|sql'
131131
# Check which version the DB is at:
132-
kubectl run pg-probe --rm -it --image=postgres:16-alpine -- \
132+
kubectl run pg-probe --rm -it --image=postgres:18-alpine -- \
133133
psql "$DATABASE_URL" -c 'select version, dirty from schema_migrations'
134134
```
135135

0 commit comments

Comments
 (0)