Skip to content

Enhancement: Helm Chart Hooks for PostgreSQL pg_dump #2144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
artntek opened this issue Apr 30, 2025 · 0 comments
Open

Enhancement: Helm Chart Hooks for PostgreSQL pg_dump #2144

artntek opened this issue Apr 30, 2025 · 0 comments

Comments

@artntek
Copy link
Contributor

artntek commented Apr 30, 2025

Issue #1748 introduced the ability to manually pg_dump and automatically pg_restore backups across PostgreSQL major version upgrades.

This seems to work OK, but requires manual intervention that could be avoided by automating through the use of Helm Chart Hooks. See this example in dataone-indexer Issue 202.

Through the use of hooks, it should be possible to do a pg_dump (to provide a temporary backup) at every helm uninstall/upgrade (provided it doesn't take too long - a Values flag can be used to disable).

(Moving the pg_restore operation from its current location (an initContainer in the Metacat pod) to a helm hook would be a "nice to have", for separation of concerns. However, this may not be feasible, since pg_restore requires PostgreSQL to be running - so we'd need ot investigate the chart/hook lifecycle a bit more.)

@artntek artntek changed the title Enhancement: Enhancement: Helm Chart Hooks for PostgreSQL pg_dump Apr 30, 2025
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

No branches or pull requests

1 participant