Ensure immich db absent

This commit is contained in:
Daniel Cosme
2026-05-05 15:18:02 -04:00
parent f38c6ab38a
commit 49135bab66
3 changed files with 20 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ func Stack() stack.Stack {
map[string]any{
"cluster-namespace": root.PGClusterNamespace,
"pg-cluster": Cluster(),
// "immich-db": ImmichDatabase(),
"immich-db": ImmichDatabase(),
},
)
return kz.Stack("postgres")
@@ -66,8 +66,9 @@ 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{
Name: root.Immich.Name,
Owner: root.Immich.Name,
Ensure: pg.EnsureAbsent,
Name: root.Immich.Name,
Owner: root.Immich.Name,
ClusterRef: core.LocalObjectReference{
Name: cluster_meta.Meta().Name,
},