Repository navigation
feat(postgres): add cnpg cluster helmfile and bump operator to 0.29.0 - #161
Merged
Merged
Conversation
The CloudNativePG operator was deployed declaratively, but the Cluster CR itself was only documented as a manual `kubectl apply` heredoc in the database README. Add database/postgres-cluster.yaml.gotmpl, using the official cnpg/cluster chart (0.8.1) from the repository the operator already comes from, so no new `repositories` entry is needed and the existing Renovate customManager picks the version up. Defaults are lab-shaped and fully parameterized: single instance, no PDB, no superuser access, backups and monitoring off, PostgreSQL 17. Leaving appSecretName empty lets cnpg generate the <clusterName>-app secret. Also bump the operator chart 0.24.0 -> 0.29.0 (app 1.26.0 -> 1.30.0), which had drifted five minor versions behind upstream. Verified on a test cluster: the operator upgrade rolls in place with the existing cluster returning to a healthy state, and a fresh deploy of the cluster helmfile against 1.30.0 comes up healthy on PostgreSQL 17.11 with the app database and owner created. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012yzd6TJqbsBuk95w3efGiL
This branch was successfully deployed
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.
What
database/postgres-cluster.yaml.gotmpl(+database/values/postgres-cluster.values.yaml.gotmpl) — deploys a CloudNativePGClusterCR via the officialcnpg/clusterchart, 0.8.1.database/postgres.yaml.gotmploperator chart 0.24.0 → 0.29.0 (app 1.26.0 → 1.30.0).### DEPLOY CLUSTERsection indatabase/README.md.Why
The operator was deployed declaratively, but the
ClusterCR was only documented as a manualkubectl applyheredoc. This closes that gap.The
cnpg/clusterchart lives in the repository the operator already comes from, so no newrepositoriesentry is needed and the existing RenovatecustomManagerpicks the version up. The operator itself had drifted five minor versions behind upstream.Defaults
Lab-shaped and fully parameterized:
instances: 1,enablePDB: false,enableSuperuserAccess: false, backups and monitoring off, PostgreSQL 17. LeavingappSecretNameempty lets cnpg generate the<clusterName>-appsecret; set it to point at a pre-created basic-auth secret instead.Testing
Verified end to end on a test cluster (RKE2 v1.35.3,
openebs-hostpathdefault SC):Cluster in healthy state.pre-commitandtask check-renovateboth pass.🤖 Generated with Claude Code
https://claude.ai/code/session_012yzd6TJqbsBuk95w3efGiL