feat(demo): deploy the image catalog with common extensions by default#90
Open
gbartolini wants to merge 2 commits into
Open
feat(demo): deploy the image catalog with common extensions by default#90gbartolini wants to merge 2 commits into
gbartolini wants to merge 2 commits into
Conversation
Apply the cloudnative-pg/artifacts ClusterImageCatalog (catalog-minimal-trixie.yaml) in every region alongside the CNPG operator, providing common extensions (pgvector, PostGIS, TimescaleDB, pgaudit, wal2json, pg-crash) out of the box. Closes #89. Add `IMAGE_CATALOG_URL`/`IMAGE_CATALOG_NAME` to select the catalog, and `POSTGRESQL_VERSION` to pick the PostgreSQL major from it. In plugin mode, the Cluster now selects its image via `spec.imageCatalogRef` (rendered from the new `demo/templates/image-catalog.yaml` fragment) instead of a fixed `POSTGRESQL_IMAGE`. Legacy mode is unaffected — the catalog only ships minimal images, so `demo/templates/legacy/image-legacy.yaml` keeps a direct `imageName: ${POSTGRESQL_LEGACY_IMAGE}` reference. `demo/teardown.sh` removes the catalog alongside the other requirements. Closes #89 Assisted-by: Claude Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Split spec.storage/spec.walStorage out of demo/templates/cluster.yaml into a dedicated demo/templates/storage.yaml, overridable via STORAGE_TEMPLATE. It's shared unchanged by both plugin and legacy modes — unlike the image reference, storage sizing doesn't diverge between them — but PVC sizing is one of the most commonly tweaked settings, so it earns its own fragment following the same one-concern-per-file convention as the other templates. Assisted-by: Claude Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #89