Support CloudNativePG as an alternative to the Crunchy operator (PGO) ?

Open
#708 5 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
kubernetes, postgresql, python

Research direction

Start with the chart's PostgreSQL configuration and the existing integration test CI setup; the issue says the chart can connect through postgresql.type: external-secret with keys.database: dbname. Check how extensions and pgstac roles are created by the superuser job, since the proposal moves them into CloudNativePG post-init SQL. Done would include a docs page with an example cluster and CI integration tests; the issue also flags data migration as unresolved.

Written by the indexing model from the issue text.

Description

It seems that we picked Crunchy's PGO in 2024 (#77, #132) for its docs and community. Going through the chart's dependencies, I looked at how the database images are built and licensed, and two points weren't covered then:

  • The default install pulls Crunchy's images from registry.developers.crunchydata.com, which fall under Crunchy's Developer Program terms: organisations with 50+ employees need a Crunchy support subscription to use them in production, and they can't be used for consulting or support services that include installing or administering them for a third party.
  • The registry's tag lists for these images return 404, so Renovate can only follow them through PGO bumps.

CloudNativePG is a CNCF project with an Apache-2.0 operator, chart and image builds, and PostGIS images built on a weekly schedule. The chart can already connect to it through postgresql.type: external-secret with keys.database: dbname; the extensions and pgstac roles our superuser job creates would move into the cluster's post-init SQL.

I'd like to start small, maybe a docs page with an example CloudNativePG cluster and a CI job running the integration tests against it, what do you think @pantierra? PGO could stay the default during that time.
Existing installs would also need a data migration. CloudNativePG's built-in import uses pg_restore, which pgstac's docs say doesn't work on pgstac dumps (pgstac_restore does), so they may need a custom pg_dump + pgstac_restore migration.

Dominant language
Python
Stars
34
Forks
17
Avg merge
1d 9h
Merged PRs (30d)
56

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from developmentseed/eoapi-k8s

All issues in developmentseed/eoapi-k8s

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.