Skip to content

About

Just for testing, please visit the real CloudNative-PG repo

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

5,571 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

fyannk elephant mark

cloudnative-pg, fyannk build

An unofficial build of the CloudNativePG 1.30.2 operator, with fixes and features proposed upstream.
Its manifest replaces the one of a stock 1.30.2 operator in place; the differences are documented.

CI status Latest release Apache-2.0 license Based on CloudNativePG 1.30.2 Go 1.26

This repository is a personal fork of CloudNativePG, the Kubernetes operator for PostgreSQL. The v1.30.2-fyannk branch is the stock v1.30.2 release plus the changes listed below. Each change is also proposed upstream as its own pull request; this build lets them run in production before they are merged, or instead of it.

Important

This is not an official CloudNativePG release, and it is not affiliated with or endorsed by the CloudNativePG project or the CNCF. Do not report its problems to the CloudNativePG maintainers: open an issue here. For the official operator, go to cloudnative-pg/cloudnative-pg.

What differs from stock 1.30.2

Nothing below needs a permission the stock release manifest does not grant, and the object names are unchanged.

Without any new setting

  • The managed objects carry the cnpg.io/reconcile=true label, and each Cluster reports the operator that reconciled it in status.operator.
  • The proxy settings of the operator reach the instances and the poolers, whose traffic then goes through that proxy unless NO_PROXY matches (PROPAGATE_PROXY_ENV=false disables it).
  • resizeInUseVolumes: false in the section of the WAL or of a tablespace prevents the resize of its volumes.
  • Stalls are visible: a refused volume expansion, a resize waiting for a Pod restart, a blocked Pooler, a failed major upgrade or a failed reconciliation each get a condition, a phase reason or a Warning event.
  • The instance manager names the full volumes when PostgreSQL stops, and a demoted primary escalates its smart shutdown to a fast one, which cuts the open sessions at once.
  • New metrics: cnpg_pgbouncer_up, cnpg_disk_*, cnpg_operator_*.

Stricter

  • The Cluster CRD enforces the update rules of the webhook itself, at most 64 tablespaces, and a webhook checks the writes of the scale subresource.

Opt-in

  • autoGrow: the volumes grow on their own before they fill up.
  • A cache restricted to the managed objects, a default StorageClass for new clusters, labels and annotations per kind of object, monitoring discovery annotations, standard five-field cron schedules.
  • Restricted installations: running without some APIs or permissions, node state without the Node API, an external webhook certificate, several operators in one namespace.

The full list, with the effect of each change on existing clusters, is in Differences from CloudNativePG.

Quick start

Prerequisites: a Kubernetes cluster supported by CloudNativePG 1.30, and kubectl.

kubectl apply --server-side -f \
  https://github.com/fyannk/cloudnative-pg/releases/download/v1.30.2-2/cnpg-1.30.2-2.yaml

The operator runs in the cnpg-system namespace, from the image ghcr.io/fyannk/cloudnative-pg:1.30.2-2. Clusters are then created as with stock CloudNativePG: see its quickstart.

To replace a stock 1.30.2 operator, or to go back to it, read Replacing an upstream 1.30.2 operator first: apply the full manifest, not only the image.

Versions

Releases are named after the stock version they are based on, followed by a sequence number: 1.30.2-1, 1.30.2-2, and so on. In semantic versioning this suffix sorts below the stock 1.30.2, so keep this build out of the channels and update rules of the official one: see Unofficial fork builds.

Documentation

Contributing

Changes are written for upstream first: each one is a pull request on main, then carried into this branch. Open an issue here before writing code.

Security

Report a vulnerability of this build privately, through a security advisory on this repository. A vulnerability that also affects stock CloudNativePG belongs to its maintainers, as described in SECURITY.md.

License

Apache-2.0, as CloudNativePG. See LICENSE. CloudNativePG is a Series of LF Projects, LLC; PostgreSQL is a registered trademark of the PostgreSQL Community Association of Canada.

About

Just for testing, please visit the real CloudNative-PG repo

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages