Remove extensions
This commit is contained in:
@@ -6,13 +6,6 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
cluster:
|
cluster:
|
||||||
name: cnpg-cluster
|
name: cnpg-cluster
|
||||||
extensions:
|
|
||||||
- ensure: present
|
|
||||||
name: vectors
|
|
||||||
- ensure: present
|
|
||||||
name: cube
|
|
||||||
- ensure: present
|
|
||||||
name: earthdistance
|
|
||||||
name: immich
|
name: immich
|
||||||
owner: immich
|
owner: immich
|
||||||
status: {}
|
status: {}
|
||||||
|
|||||||
@@ -35,6 +35,19 @@ func Cluster() pg.Cluster {
|
|||||||
StorageClassName: new(root.KUBE_LOCAL_STORAGE_CLASS),
|
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{
|
Managed: &pg.ManagedConfiguration{
|
||||||
Roles: []pg.RoleConfiguration{
|
Roles: []pg.RoleConfiguration{
|
||||||
{
|
{
|
||||||
@@ -61,24 +74,24 @@ func ImmichDatabase() pg.Database {
|
|||||||
Name: cluster_meta.Meta().Name,
|
Name: cluster_meta.Meta().Name,
|
||||||
},
|
},
|
||||||
Extensions: []pg.ExtensionSpec{
|
Extensions: []pg.ExtensionSpec{
|
||||||
{
|
// {
|
||||||
DatabaseObjectSpec: pg.DatabaseObjectSpec{
|
// DatabaseObjectSpec: pg.DatabaseObjectSpec{
|
||||||
Name: "vectors",
|
// Name: "vectors",
|
||||||
Ensure: pg.EnsurePresent,
|
// Ensure: pg.EnsurePresent,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
DatabaseObjectSpec: pg.DatabaseObjectSpec{
|
// DatabaseObjectSpec: pg.DatabaseObjectSpec{
|
||||||
Name: "cube",
|
// Name: "cube",
|
||||||
Ensure: pg.EnsurePresent,
|
// Ensure: pg.EnsurePresent,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
DatabaseObjectSpec: pg.DatabaseObjectSpec{
|
// DatabaseObjectSpec: pg.DatabaseObjectSpec{
|
||||||
Name: "earthdistance",
|
// Name: "earthdistance",
|
||||||
Ensure: pg.EnsurePresent,
|
// Ensure: pg.EnsurePresent,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
return kube_cnpg.NewDatabase(meta, spec)
|
return kube_cnpg.NewDatabase(meta, spec)
|
||||||
|
|||||||
Reference in New Issue
Block a user