From 391b97d43a0cb5fa29562d07786f0e974aa13c48 Mon Sep 17 00:00:00 2001 From: Daniel Cosme Date: Tue, 5 May 2026 15:19:01 -0400 Subject: [PATCH] Recreate immich database --- infrastructure/hydra/postgres/immich-db.yaml | 2 +- pkg/postgres/postgres.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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{