Skip to content

Conversation

@mbiagetti
Copy link
Contributor

initial support for extensions dependencies

introduce a new field in the metadata spec to define a list of required extensions

supposing a metadata file like

metadata = {
  name                     = "pgrouting"
  sql_name                 = "pgrouting"
  image_name               = "pgrouting"
  shared_preload_libraries = []
  extension_control_path   = []
  dynamic_library_path     = []
  ld_library_path          = []
  auto_update_os_libs      = false
  required_extensions      = [
      "postgis",
  ]

  versions = {
    bookworm = {
      "18" = ":4.0.0+dfsg-1.pgdg12+1"
    }
    trixie = {
      "18" = "4.0.0+dfsg-1.pgdg13+1"
    }
  }
}

the command generate-testing-values command will generate the proper extensions like

dagger \
call \
-m ./dagger/maintenance/ \
generate-testing-values --target pgrouting --extension-image ghcr.io/cloudnative-pg/pgrouting:4.0.0-18-bookworm export --path=pgrouting/values.yaml
extensions:
    - dynamic_library_path: []
      extension_control_path: []
      image:
        reference: ghcr.io/cloudnative-pg/pgrouting:4.0.0-18-bookworm
      ld_library_path: []
      name: pgrouting
    - dynamic_library_path: []
      extension_control_path: []
      image:
        reference: ghcr.io/cloudnative-pg/postgis-extension:3.6.1-18-trixie
      ld_library_path:
        - /system
      name: postgis
name: pgrouting
pg_image: ghcr.io/cloudnative-pg/postgresql:18-minimal-bookworm
sql_name: pgrouting
version: 4.0.0

@mbiagetti mbiagetti force-pushed the mbiagetti/dev/18 branch 7 times, most recently from 5c340c9 to ac116d0 Compare January 16, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant