Skip to content

Commit 45b7a4c

Browse files
fix(cnpg): switch shared-cluster to PG 18 with PostGIS + pgvector image
The Cluster CR was being rejected by the cnpg validating webhook: spec.postgresql.parameters.shared_preload_libraries: Invalid value: "vector": Can't set fixed configuration parameter Two issues with that field: cnpg manages shared_preload_libraries itself (it's a "fixed" parameter), and the user-facing field is at spec.postgresql.shared_preload_libraries (top-level array), not under parameters. pgvector doesn't actually require preloading — it loads on CREATE EXTENSION — so dropping the line entirely. Switch the operand image to ghcr.io/cloudnative-pg/postgis:18-3-system-trixie, the cnpg-maintained image that bundles PostGIS, pgvector, pgaudit, and barman-cloud (for backups). Bump the cnpg helm chart from v0.23.1 (operator 1.25.0) to v0.28.0 (operator 1.29.0) — required because PG 18 needs cnpg ≥ 1.26. Validated with `kubectl diff` against the current 1.25 webhook (exit 0, spec accepted). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 45ebb5c commit 45b7a4c

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[holosource]
22
url = "https://github.com/cloudnative-pg/charts.git"
3-
ref = "refs/tags/cloudnative-pg-v0.23.1"
3+
ref = "refs/tags/cloudnative-pg-v0.28.0"

infra/cloudnative-pg/shared-cluster.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ metadata:
55
namespace: cloudnative-pg
66
spec:
77
instances: 3
8-
imageName: ghcr.io/cloudnative-pg/postgresql:16.1
8+
imageName: ghcr.io/cloudnative-pg/postgis:18-3-system-trixie
99
storage:
1010
size: 20Gi
11-
11+
1212
managed:
1313
roles:
1414
- name: balancer
1515
login: true
1616
passwordSecret:
1717
name: balancer-db-credentials
18-
19-
postgresql:
20-
parameters:
21-
shared_preload_libraries: 'vector'

0 commit comments

Comments
 (0)