From eee3907f1c8f052585803a3a347a7fb84ca6757c Mon Sep 17 00:00:00 2001 From: Daniel Cosme Date: Tue, 5 May 2026 13:08:05 -0400 Subject: [PATCH] Remove extensions --- infrastructure/hydra/postgres/immich-db.yaml | 7 --- pkg/postgres/postgres.go | 49 +++++++++++++------- 2 files changed, 31 insertions(+), 25 deletions(-) diff --git a/infrastructure/hydra/postgres/immich-db.yaml b/infrastructure/hydra/postgres/immich-db.yaml index 31a4c54..7b5a048 100644 --- a/infrastructure/hydra/postgres/immich-db.yaml +++ b/infrastructure/hydra/postgres/immich-db.yaml @@ -6,13 +6,6 @@ metadata: spec: cluster: name: cnpg-cluster - extensions: - - ensure: present - name: vectors - - ensure: present - name: cube - - ensure: present - name: earthdistance name: immich owner: immich status: {} diff --git a/pkg/postgres/postgres.go b/pkg/postgres/postgres.go index 7e96f7f..7a154f3 100644 --- a/pkg/postgres/postgres.go +++ b/pkg/postgres/postgres.go @@ -35,6 +35,19 @@ func Cluster() pg.Cluster { StorageClassName: new(root.KUBE_LOCAL_STORAGE_CLASS), }, }, + // PostgresConfiguration: pg.PostgresConfiguration{ + // Extensions: []pg.ExtensionConfiguration{ + // { + // Name: "vector", + // ImageVolumeSource: core.ImageVolumeSource{}, + // ExtensionControlPath: []string{}, + // DynamicLibraryPath: []string{}, + // LdLibraryPath: []string{}, + // BinPath: []string{}, + // Env: []pg.ExtensionEnvVar{}, + // }, + // }, + // }, Managed: &pg.ManagedConfiguration{ Roles: []pg.RoleConfiguration{ { @@ -61,24 +74,24 @@ func ImmichDatabase() pg.Database { Name: cluster_meta.Meta().Name, }, Extensions: []pg.ExtensionSpec{ - { - DatabaseObjectSpec: pg.DatabaseObjectSpec{ - Name: "vectors", - Ensure: pg.EnsurePresent, - }, - }, - { - DatabaseObjectSpec: pg.DatabaseObjectSpec{ - Name: "cube", - Ensure: pg.EnsurePresent, - }, - }, - { - DatabaseObjectSpec: pg.DatabaseObjectSpec{ - Name: "earthdistance", - Ensure: pg.EnsurePresent, - }, - }, + // { + // DatabaseObjectSpec: pg.DatabaseObjectSpec{ + // Name: "vectors", + // Ensure: pg.EnsurePresent, + // }, + // }, + // { + // DatabaseObjectSpec: pg.DatabaseObjectSpec{ + // Name: "cube", + // Ensure: pg.EnsurePresent, + // }, + // }, + // { + // DatabaseObjectSpec: pg.DatabaseObjectSpec{ + // Name: "earthdistance", + // Ensure: pg.EnsurePresent, + // }, + // }, }, } return kube_cnpg.NewDatabase(meta, spec)