diff --git a/infrastructure/hydra/postgres/immich-db.yaml b/infrastructure/hydra/postgres/immich-db.yaml index f7a8d2c..c09e5e7 100644 --- a/infrastructure/hydra/postgres/immich-db.yaml +++ b/infrastructure/hydra/postgres/immich-db.yaml @@ -6,7 +6,7 @@ metadata: spec: cluster: name: cnpg-cluster - ensure: absent + ensure: present extensions: - ensure: present name: vector diff --git a/pkg/postgres/postgres.go b/pkg/postgres/postgres.go index 1160a7a..43fb04e 100644 --- a/pkg/postgres/postgres.go +++ b/pkg/postgres/postgres.go @@ -66,7 +66,7 @@ var ImmichPGSecret = kube_cnpg.NewPGSecret(root.Immich.Name, root.PGClusterNames func ImmichDatabase() pg.Database { meta := kube.NewMetadata(root.Immich.Name+"-db", root.PGClusterNamespace) spec := pg.DatabaseSpec{ - Ensure: pg.EnsureAbsent, + Ensure: pg.EnsurePresent, Name: root.Immich.Name, Owner: root.Immich.Name, ClusterRef: core.LocalObjectReference{