Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dagger/maintenance/catalogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type ExtensionConfiguration struct {
ExtensionControlPath []string `yaml:"extension_control_path,omitempty"`
DynamicLibraryPath []string `yaml:"dynamic_library_path,omitempty"`
LdLibraryPath []string `yaml:"ld_library_path,omitempty"`
BinPath []string `yaml:"bin_path,omitempty"`
}

type ImageCatalog struct {
Expand Down
1 change: 1 addition & 0 deletions dagger/maintenance/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ func (m *Maintenance) GenerateCatalogs(
ExtensionControlPath: metadata.ExtensionControlPath,
DynamicLibraryPath: metadata.DynamicLibraryPath,
LdLibraryPath: metadata.LdLibraryPath,
BinPath: metadata.BinPath,
}

img.Extensions = append(img.Extensions, extensionsConfig)
Expand Down
1 change: 1 addition & 0 deletions dagger/maintenance/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type extensionMetadata struct {
ExtensionControlPath []string `hcl:"extension_control_path" cty:"extension_control_path"`
DynamicLibraryPath []string `hcl:"dynamic_library_path" cty:"dynamic_library_path"`
LdLibraryPath []string `hcl:"ld_library_path" cty:"ld_library_path"`
BinPath []string `hcl:"bin_path" cty:"bin_path"`
AutoUpdateOsLibs bool `hcl:"auto_update_os_libs" cty:"auto_update_os_libs"`
RequiredExtensions []string `hcl:"required_extensions" cty:"required_extensions"`
CreateExtension bool `hcl:"create_extension" cty:"create_extension"`
Expand Down
1 change: 1 addition & 0 deletions dagger/maintenance/testingvalues.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func generateExtensionConfiguration(metadata *extensionMetadata, extensionImage
ExtensionControlPath: metadata.ExtensionControlPath,
DynamicLibraryPath: metadata.DynamicLibraryPath,
LdLibraryPath: metadata.LdLibraryPath,
BinPath: metadata.BinPath,
}, nil
}

Expand Down
1 change: 1 addition & 0 deletions pgaudit/metadata.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata = {
extension_control_path = []
dynamic_library_path = []
ld_library_path = []
bin_path = []
auto_update_os_libs = false
required_extensions = []
create_extension = true
Expand Down
1 change: 1 addition & 0 deletions pgvector/metadata.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata = {
extension_control_path = []
dynamic_library_path = []
ld_library_path = []
bin_path = []
auto_update_os_libs = false
required_extensions = []
create_extension = true
Expand Down
1 change: 1 addition & 0 deletions postgis/metadata.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata = {
extension_control_path = []
dynamic_library_path = []
ld_library_path = ["system"]
bin_path = []
auto_update_os_libs = true
required_extensions = []
create_extension = true
Expand Down
9 changes: 9 additions & 0 deletions templates/metadata.hcl.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ metadata = {
# Used in tests and to generate image catalogs.
ld_library_path = []

# TODO: Remove this comment block after customizing the file.
# `bin_path`: this SHOULD be defined when your extension needs executables
# to be present in the PATH of the PostgreSQL process to function properly.
# For most extensions, the default empty list (`[]`) is correct and the
# operator will NOT alter `PATH`.
# Each path provided is appended to the `PATH` environment variable for the
# Postgres process. Used in tests and to generate image catalogs.
bin_path = []

# TODO: Remove this comment block after customizing the file.
# `auto_update_os_libs`: set to true to allow the maintenance tooling
# to update OS libraries automatically; look at the `postgis` example.
Expand Down
Loading