From 9a3c16cd4d1a776f57d987933c793f83dff98555 Mon Sep 17 00:00:00 2001 From: Daniel Cosme Date: Tue, 5 May 2026 14:08:40 -0400 Subject: [PATCH] Add imageName to Cluster --- infrastructure/hydra/postgres/pg-cluster.yaml | 9 +++------ pkg/postgres/postgres.go | 12 ++++-------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/infrastructure/hydra/postgres/pg-cluster.yaml b/infrastructure/hydra/postgres/pg-cluster.yaml index a82f609..5156a89 100644 --- a/infrastructure/hydra/postgres/pg-cluster.yaml +++ b/infrastructure/hydra/postgres/pg-cluster.yaml @@ -5,11 +5,7 @@ metadata: namespace: cnpg-cluster spec: affinity: {} - imageCatalogRef: - apiGroup: postgresql.cnpg.io/v1 - kind: ImageCatalog - major: 18 - name: pg-minimal-trixie + imageName: ghcr.io/cloudnative-pg/postgresql:18.3-minimal-trixie instances: 3 managed: roles: @@ -19,7 +15,8 @@ spec: name: immich postgresql: extensions: - - image: {} + - image: + reference: ghcr.io/cloudnative-pg/pgvector:0.8.2-18-trixie name: pgvector syncReplicaElectionConstraint: enabled: false diff --git a/pkg/postgres/postgres.go b/pkg/postgres/postgres.go index 7928048..0cf6e1d 100644 --- a/pkg/postgres/postgres.go +++ b/pkg/postgres/postgres.go @@ -42,18 +42,14 @@ func Cluster() pg.Cluster { StorageClassName: new(root.KUBE_LOCAL_STORAGE_CLASS), }, }, - ImageCatalogRef: &pg.ImageCatalogRef{ - TypedLocalObjectReference: core.TypedLocalObjectReference{ - APIGroup: &image_catalog.APIVersion, - Kind: image_catalog.Kind, - Name: image_catalog.Name, - }, - Major: root.PG_VERSION_18, - }, + ImageName: root.PG_VERSION_18_IMAGE, PostgresConfiguration: pg.PostgresConfiguration{ Extensions: []pg.ExtensionConfiguration{ { Name: "pgvector", + ImageVolumeSource: core.ImageVolumeSource{ + Reference: "ghcr.io/cloudnative-pg/pgvector:0.8.2-18-trixie", + }, }, }, },