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.
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.
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=truelabel, and eachClusterreports the operator that reconciled it instatus.operator. - The proxy settings of the operator reach the instances and the poolers,
whose traffic then goes through that proxy unless
NO_PROXYmatches (PROPAGATE_PROXY_ENV=falsedisables it). resizeInUseVolumes: falsein 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
ClusterCRD enforces the update rules of the webhook itself, at most 64 tablespaces, and a webhook checks the writes of thescalesubresource.
Opt-in
autoGrow: the volumes grow on their own before they fill up.- A cache restricted to the managed objects, a default
StorageClassfor 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
NodeAPI, 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.
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.yamlThe 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.
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.
- Differences from CloudNativePG
- Operator configuration, with the new settings
- Everything else: the CloudNativePG 1.30 documentation applies as is.
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.
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.
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.