Add imageName to Cluster

This commit is contained in:
Daniel Cosme
2026-05-05 14:08:40 -04:00
parent 4c837dc0f5
commit 9a3c16cd4d
2 changed files with 7 additions and 14 deletions

View File

@@ -5,11 +5,7 @@ metadata:
namespace: cnpg-cluster namespace: cnpg-cluster
spec: spec:
affinity: {} affinity: {}
imageCatalogRef: imageName: ghcr.io/cloudnative-pg/postgresql:18.3-minimal-trixie
apiGroup: postgresql.cnpg.io/v1
kind: ImageCatalog
major: 18
name: pg-minimal-trixie
instances: 3 instances: 3
managed: managed:
roles: roles:
@@ -19,7 +15,8 @@ spec:
name: immich name: immich
postgresql: postgresql:
extensions: extensions:
- image: {} - image:
reference: ghcr.io/cloudnative-pg/pgvector:0.8.2-18-trixie
name: pgvector name: pgvector
syncReplicaElectionConstraint: syncReplicaElectionConstraint:
enabled: false enabled: false

View File

@@ -42,18 +42,14 @@ func Cluster() pg.Cluster {
StorageClassName: new(root.KUBE_LOCAL_STORAGE_CLASS), StorageClassName: new(root.KUBE_LOCAL_STORAGE_CLASS),
}, },
}, },
ImageCatalogRef: &pg.ImageCatalogRef{ ImageName: root.PG_VERSION_18_IMAGE,
TypedLocalObjectReference: core.TypedLocalObjectReference{
APIGroup: &image_catalog.APIVersion,
Kind: image_catalog.Kind,
Name: image_catalog.Name,
},
Major: root.PG_VERSION_18,
},
PostgresConfiguration: pg.PostgresConfiguration{ PostgresConfiguration: pg.PostgresConfiguration{
Extensions: []pg.ExtensionConfiguration{ Extensions: []pg.ExtensionConfiguration{
{ {
Name: "pgvector", Name: "pgvector",
ImageVolumeSource: core.ImageVolumeSource{
Reference: "ghcr.io/cloudnative-pg/pgvector:0.8.2-18-trixie",
},
}, },
}, },
}, },