Release notes for CloudNativePG 1.30
History of user-visible changes in the 1.30 minor release of CloudNativePG.
For a complete list of changes, please refer to the commits on the release branch in GitHub.
Version 1.30.2
Release date: Nov 17, 2026
Important changes
-
PostgreSQL 18.7 is the new default image: the default operand image is now
18.7-system-trixie, which fixes several CVEs. It applies only to new clusters that don't set an image. To get the fixes, update existing clusters to 18.7, 17.12, 16.16 or 15.20 by changingimageNameor theImageCatalog. Before updating, read the PostgreSQL 18.7 announcement and the release notes it links. (#11833) -
PostgreSQL 14 is no longer supported: the PostgreSQL community stopped fixing PostgreSQL 14 on November 12, 2026, and CloudNativePG supports a major version only as long as PostgreSQL does. If you still run PostgreSQL 14, plan an upgrade to a newer major version. PostgreSQL 15 stops receiving fixes on November 11, 2027. (#11935)
-
The operator now needs the
deletepermission onleases. Users who manage the RBAC manually must add it. (#11609)
Enhancements
-
Streaming retry for standbys on the WAL archive: PostgreSQL tries streaming only after a restore from the archive fails. If WAL is produced about as fast as it is restored, that may never happen, and the standby stays on the archive, with no WAL receiver and no part in synchronous replication. Now, after 30 seconds of continuous restores, WAL restore fails on purpose for 5 seconds, so PostgreSQL tries streaming. These failures are expected and can appear in the logs. (#11868)
-
Server-side encryption with customer-provided keys (SSE-C): added
sseCustomerKeyins3Credentials, to use SSE-C with S3-compatible object stores. It works with backups, WAL archiving and recovery. (#11711, #11775) -
BackupandScheduledBackupresources that use thebarmanObjectStoremethod now return an admission warning about the removal of native Barman Cloud support in 1.32, asClusterresources already did. (#11725) -
extension_control_pathanddynamic_library_pathno longer list directories that are missing from an extension image, for examplesharein an image that ships onlylib. (#11652) -
Transient network errors from
barman-cloud-wal-restoreare now logged (needs Barman 3.20.0 or later). (#11541) -
Moved the "Defaulting for ..." operator log lines from info to debug level. They were printed at every reconciliation and hid other messages. (#11790)
-
cnpgplugin:kubectl cnpg statusno longer fails without thepods/execpermission. It showsnot permitted: requires the pods/exec permissioninstead of the size and configuration sections. (#11687)
Security and Supply Chain
- Updated
golang.org/x/netto v0.62.0, fixing GO-2026-6617, GO-2026-6612, GO-2026-6611, GO-2026-6610, GO-2026-6603, GO-2026-6860 and GO-2026-6866, and bumped the othergolang.org/xmodules. (#11631, #11867)
Changes
-
Updated the default PgBouncer image from 1.25.2 to 1.26.1. Poolers that use the default image roll out the new version when the operator is upgraded. (#11571, #11704)
-
Updated the
barman-cloudlibrary to v0.7.0, which skips failed backups when it reads the backup catalog. (#11711)
Fixes
-
Fixed enabling a sidecar plugin on a running cluster. Pods created before that have no sidecar until they are recreated. They logged
Unknown pluginerrors, their metrics scrapes failed, and a switchover could wait forever. When the plugin archives WAL, the former primary crash looped until the Pod was deleted. The operator now recreates it. (#11858) -
Fixed replicas created from an online volume snapshot ignoring the
backup_labelandtablespace_mapstored in the snapshot. PostgreSQL did crash recovery and did not fetch WAL from the archive. (#11847) -
Fixed logical decoding stalling while a new replica was bootstrapping, with
synchronizeLogicalDecodingenabled. The replica is now left out ofsynchronized_standby_slots(orpg_failover_slots.standby_slot_names) until its volume is initialized. (#11802) -
Fixed
status.phaseReasonbeing cleared and set again several times a second while a cluster was being created or changed, for example "Some instances are not yet active". This loaded the API server and madekubectl get cluster -wnoisy. (#11789) -
Fixed the operator retrying instance status requests that failed with an error response, as if the failure was a network error. During a switchover the old primary answers with an error while PostgreSQL is stopped, so each reconciliation waited about 1.6 seconds, which slowed the whole switchover. Contributed by @kabbydriver. (#11793)
-
Fixed the WAL count and size metrics counting
.partial,.backupand.historyfiles. (#9967) -
Fixed replicas crash looping with
recovery aborted because of insufficient parameter settingsafter a hot standby parameter such asmax_connectionswas removed from.spec.postgresql.parameters. Contributed by @ichibahn. (#11236) -
Fixed the instance manager waiting forever on a frozen postmaster, one that accepts connections but never answers. This blocked the instance status, the metrics exporter and the check before an in-tree backup. Local connection attempts to PostgreSQL now time out after 5 seconds. (#11718)
-
Fixed a
Clusterrecreated over leftover resources (for example by a backup tool) staying inUnable to create required cluster objectswithcannot set an ownerRef on a resource you can't delete. This happened with theOwnerReferencesPermissionEnforcementadmission plugin. When restoring over orphan PVCs, the operator now deletes the stale primaryLease, so the new primary does not wait for it to expire. (#11609) -
Fixed WAL restore reporting the end of the WAL archive on the wrong timeline. A replica restored from a snapshot could miss valid WAL of the new timeline and replay WAL of the parent timeline instead. Contributed by @ardentperf. (#11133)
-
Fixed a
Clusternot being reconciled again when a plugin asked for a retry without a delay. For example, aClustercreated before theObjectStoreof the Barman Cloud plugin stayed inBootstrapPending. The operator now retries after one second. Contributed by @valeriodelsarto. (#11683) -
Fixed
ConsistentSystemIDturningFalsewhile PostgreSQL is not running, for example in replica clusters after a demotion, or on fenced instances. The system ID is now read from disk, so it no longer needs a running PostgreSQL. (#11645) -
Fixed a
Backupthat could be started more than once, or moved back topendingafter it started. (#11617) -
cnpgplugin:- Fixed
kubectl cnpg backupfor volume snapshot backups: when only one of--immediate-checkpointand--wait-for-archivewas set, the other option used its default instead of the value in.spec.backup.volumeSnapshot.onlineConfiguration. (#11733)
- Fixed
Version 1.30.1
Release date: Sep 23, 2026
Enhancements
-
Added
restoreAdditionalCommandArgsto.barmanObjectStore.datafor in-tree Barman Cloud recoveries, so custom flags are forwarded tobarman-cloud-restoreduring recovery. (#11278) -
Plugin authors no longer need to re-derive whether an empty WAL archive should be treated as an error: the operator now computes the
check_empty_wal_archivedecision once and passes it to CNPG-I plugins on both WAL archiving and restore hooks. (#11216) -
Allowed setting the
ssl_ecdh_curvePostgreSQL parameter in.spec.postgresql.parameters. It was previously rejected by the validating webhook even though the operator does not manage it. Contributed by @Jamstah. (#11308) -
Added support for setting
auth_userinspec.pgbouncer.parametersto override the user PgBouncer uses for itsauth_queryconnection, instead of always deriving it from theauthQuerySecret. Useful with a customauthQuerySecretwhere the role to authenticate as differs from the one implied by the Secret. Contributed by @jonasbadstuebner. (#10899) -
Fixed PgBouncer metrics silently reporting zero when PgBouncer adds or reorders columns:
SHOW STATSandSHOW POOLSresults are now matched by column name instead of by position. Contributed by @AdzerKI (SHOW STATS). (#11366, #11464) -
cnpgplugin:- Added a
--dry-runoption to thebackupcommand that prints theBackupresource that would be created, without creating it. (#11233)
- Added a
Security and Supply Chain
-
Fixed a webhook validation bypass where an absolute extension path with an embedded
..traversal (e.g./a/../../../../etc) was accepted because only the raw path was checked; such paths still escaped the extension's mount point once resolved at runtime. Affected entries are now resolved and rejected/skipped consistently across admission, the major-upgrade job, and already-persisted Cluster specs. Contributed by @Anand-240. (#11210) -
Updated
google.golang.org/grpcto v1.83.1, fixing CVE-2026-84304 / GHSA-vp52-pcj8-j9qc (gRPC-Go heap memory exhaustion via HTTP/2 DATA frame fragmentation). (#11394)
Changes
-
Updated the default PostgreSQL operand image to 18.6-system-trixie. (#11257)
-
Moved the operator's own base image from Debian 12 (bookworm) to Debian 13 (trixie), now that Debian 12 has moved to LTS-only maintenance. (#11193)
Fixes
-
Demoted an unreachable old primary immediately during failover, instead of waiting on checkpoint and fast-shutdown attempts that could never complete. Previously, an old primary whose PostgreSQL had become unresponsive was never shut down, so it could never rejoin the cluster as a replica of the new primary. The shutdown is now requested without blocking the reconciler, though demotion can still take up to a minute or more if PostgreSQL keeps ignoring shutdown signals. (#11347)
-
Fixed failover and Pod recreation getting stuck while any instance in the cluster was fenced. A fenced instance kept reporting itself as healthy on its status endpoint even though its Pod was permanently not Ready, which blocked the readiness guard, the primary-election logic, and the Pod-reattachment gate from reacting to an unrelated failure elsewhere in the cluster, leaving it stalled until someone manually removed the fencing. All three now recognize and skip fenced instances. (#11274)
-
Fixed a failover that could stall forever or get silently reverted. While a failover was pending, the reconciler could skip checking whether it was ready to complete, or mistake the pending state for a missing Pod and reset the target primary back to the unhealthy one. It now keeps progressing a pending failover and completes it once the WAL receivers are down, rechecking quorum safety right before promoting in case it changed while waiting. (#11336)
-
Fixed the designated-primary sort in
PostgresqlStatusListso a tie on LSN no longer sorts it out of order. If the designated primary's Pod later disappeared from the status list, this could have led the operator to promote the wrong standby. (#11494) -
Gated PostgreSQL startup on the instance manager actually holding the primary
Lease, closing a window where a restarting or rescheduled primary could start accepting writes before acquiring the lease. Lease acquisition now happens during instance initialization, strictly before PostgreSQL is allowed to start, instead of only later in the reconciliation loop once the instance was already reported ready. (#11356) -
Bounded the primary lease take-over
Getcall to the lease'sRenewDeadline, so a call against an unreachable API server now fails fast and retries instead of blocking indefinitely. Left unbounded, the same stalled call could also delay a primary's own lease renewal after a transient API server blip, risking an unwanted takeover by another instance once the lease appeared to expire. (#11350) -
Stopped abandoning a fast shutdown after 60 seconds. The request carried no explicit timeout, so
pg_ctlfell back to its own implicit 60-second limit, and the instance manager, being PID 1 in the container, took PostgreSQL down mid-shutdown regardless of a larger configuredstopDelay. The fast phase now waits for the fullstopDelayinstead. (#11263) -
Waited for certificate status before refreshing secrets during bootstrap. (#11450)
-
Fixed in-tree Barman Cloud recovery ignoring
wal.maxParallelandwal.restoreAdditionalCommandArgs, fetching WAL one segment at a time instead of using the configured parallelism. (#11105) -
Honored the
unrecoverableannotation on pending and terminating instances. (#11241) -
Honored
Backup.spec.onlinewhen finalizing VolumeSnapshot-based backups, so a cold backup is no longer reported as online in status. (#11276) -
Set
--no-data-checksumsexplicitly when.spec.postgresql.dataChecksumsisfalseon PostgreSQL 18+, which now enables checksums by default ininitdb. Contributed by @evan314159. (#11488) -
Stopped discarding
.spec.inheritedMetadatalabels on PVC reconciliation; they were applied before, and then overwritten by, the operator's own labels. Contributed by @GellertBabel. (#11499) -
Stopped
PoolerandDatabaseRolefrom recreating their owned resources after being marked for deletion, which could block an external finalizer (e.g. ArgoCD foreground deletion) waiting for those resources to disappear. Contributed by @mjlshen. (#11359) -
Handled a
NULLstats_resetvalue in thepg_stat_walmetric, which could occasionally break Prometheus scraping on PostgreSQL 18 clusters. Contributed by @HoniSanders. (#11207) -
Recovered log streaming when a stale non-FIFO file blocked the log pipe. (#11246)
-
Stopped sampling logs of the Pods' processes, so no log lines are silently dropped. (#11131)
-
Stopped caching Helm release Secrets in the operator, which could spike memory usage and crashloop the operator on clusters with large Helm releases installed alongside it. (#11211)
-
Re-ran owned-resource finalizer cleanup after an operator restart, so a namespace deleted while the operator was down doesn't hang in
Terminatingforever. (#11215) -
Fixed rejoining replicas taking a long time to complete
pg_rewindwhen WAL prefetching (wal.maxParallel > 1) was enabled. (#11204) -
Treated a PostgreSQL instance rejecting connections as started up in probes. (#11152)
-
Stopped issuing a redundant PATCH on every reconciliation when a cluster's
pvcTemplatesetvolumeAttributesClass. Contributed by @andrew-farries. (#11196) -
Stopped halting replication slot reconciliation at the first failing slot. (#11119)
-
During rollouts, compared the running configuration hash, rather than the on-disk one, avoiding unnecessary switchovers. (#11130)
-
Retried
VolumeSnapshoterrors until the deadline, instead of giving up early. (#11132) -
Symlinked
pg_walto the WAL volume during plugin-based recovery, instead of replaying WAL onto the data volume, which could exhaust it on a large point-in-time recovery. (#11127) -
Corrected grammar in
PhaseUpgradeDelayedstatus messages. Contributed by @Utkarsh-sharma47. (#11065) -
CloudNativePG Interface (CNPG-I):
- Reported the Postgres capabilities of a plugin correctly. (#11447)
- Prevented the plugin status field from flapping on Cluster reconciliation. Contributed by @sharifmshaker. (#11386)
- Replaced a finalizer with in-memory cleanup on Service deletion. This
avoids namespaces hanging in
Terminatingstate when the operator and its plugins run in the same namespace. Contributed by @maxlengdell. (#10940)
-
cnpgplugin:
Version 1.30.0
Release date: Jun 29, 2026
Important changes
-
Updated the deprecation notice for native (in-tree) Barman Cloud support to reflect that it will now be removed in CloudNativePG 1.31.0, rather than 1.30.0. Users are still encouraged to migrate to the Barman Cloud Plugin. (#11083)
-
The
clusterreference is now immutable on theDatabase,Pooler,Publication,Subscription, andScheduledBackupresources. Pointing one of these objects at a different cluster has no well-defined semantics and previously left the controllers in an inconsistent state; the update is now rejected at the API server via a CEL validation rule. (#10743)
Features
-
Primary
Leasefor safe primary election: introduced a KubernetesLeaseobject (named after the cluster) that acts as a mutex serializing primary promotion: the instance manager must hold the lease before acting as primary and releases it on clean shutdown so replicas can promote without waiting for the full TTL. Timings are configurable via the new.spec.primaryLeasestanza. The lease is a promotion gate, not a fence. Primary isolation remains responsible for fencing. (#10627) -
DatabaseRoleCRD for declarative role management: introduced aDatabaseRolecustom resource that manages a PostgreSQL role as a standalone Kubernetes object, instead of declaring it inline in theCluster's.spec.managed.rolesstanza. Each role gets its own lifecycle, status, and RBAC, which suits GitOps workflows and lets role definitions live next to the applications that own them. The spec reuses the sameRoleConfigurationstructure as the inline method, so migrating a role is a matter of moving the stanza into its own manifest. AdatabaseRoleReclaimPolicyfield (retain, the default, ordelete) controls what happens to the role when the resource is deleted, mirroring persistent volumes. (#6155) -
TLS client certificates for declarative roles: a
DatabaseRolecan now include aclientCertificateblock to have the operator automatically generate and renew a TLS client certificate, signed by the cluster's client CA and stored in a<databaserole-name>-client-certSecret. This enables password-free PostgreSQLcertauthentication; the Secret is cleaned up when the feature is disabled or theDatabaseRoleis deleted. (#10896) -
PgBouncer image management via image catalogs: the
Poolerresource can now reference an entry in anImageCatalogorClusterImageCatalogthrough the newspec.pgbouncer.imageCatalogReffield, centralizing PgBouncer image management. When a catalog entry is updated, all referencingPoolersare automatically reconciled and roll out the new image without any change to their spec. The resolved image is reported instatus.image, and a newstatus.phase(active,paused,inactive, orfailed), also surfaced as aPhasecolumn inkubectl get pooler, summarizes the lifecycle. (#10568)
Enhancements
-
Enabled
pg_upgradein-place major upgrades to PostgreSQL 19 or later for clusters that use Image Volume extensions, building on the extension-path support added topg_upgradein PostgreSQL 19. During the upgradeJob, the source- and target-version extension images are mounted side by side, so the old server keeps its libraries and a failed upgrade reverts cleanly. (#10366) -
Added TLS support for the
Poolermetrics endpoint via.spec.monitoring.tls.enabled. When enabled, the metrics server is served over HTTPS, reusing the certificate and key from.spec.pgbouncer.clientTLSSecretand reloading it on every handshake to support rotation without a restart; the generatedPodMonitorscrapes overhttpsaccordingly. (#10466) -
Added a label selector to the
Clusterscale subresource (status.selector), making aClustera validtargetReffor the Vertical Pod Autoscaler (VPA) and Horizontal Pod Autoscaler (HPA), which can now map aClusterto its instance pods. Contributed by @sebv004. (#8996) -
The operator now emits a
WarningPrimaryStatusCheckFailedevent on theClusterwhen the primary pod isReadyfrom the kubelet perspective but the operator's/pg/statuscheck fails and failover is deferred, giving users visibility into the deferral viakubectl describe cluster. (#10509) -
Added the
ENABLE_WEBHOOK_NAMESPACE_SUFFIXflag, which suffixes the operator's webhook configuration names with-<OPERATOR_NAMESPACE>so that multiple operator instances can coexist on the same cluster. The operator only looks up these configurations; users must create and maintain them. Contributed by @maxlengdell. (#10420) -
The operator now reloads a CNPG-i plugin automatically when its pods are rolled: it watches the
EndpointSlicesbacking pluginServicesand re-enqueues every cluster using the plugin once the new pods becomeReady, so an upgraded plugin is picked up without waiting for the next resync. (#10836) -
Instance serial numbers are now assigned by reusing the lowest free slot among existing instance names, instead of always incrementing a global counter. Pod and PVC names stay stable across instance recreation (for example, an instance recreated after a node drain comes back with the same name), and serials freed by deleted instances are reclaimed. A new
Initializedcluster condition reports whether the cluster has completed its first bootstrap, andstatus.latestGeneratedNodeis deprecated: it is no longer written, but is preserved on the CRD for backward compatibility. (#10548) -
Defaulting and validation now run during reconciliation as a fallback when admission webhooks are unavailable, or configured to ignore failures, so the operator no longer reconciles invalid or incomplete specs. Missing defaults are applied directly, and validation failures are surfaced in the resource status instead of failing silently later. (#10874)
Security
-
CVE-2026-55769/GHSA-x8c2-3p4r-v9r6:search_pathpinning on operator-issued connections: a database owner could plant overloaded built-in operators in thepublicschema and alter thesearch_pathso that operator introspection probes, running as the cluster superuser, resolved those overloads beforepg_catalog, aCWE-426privilege-escalation chain (same class asCVE-2018-1058) that could lead to in-pod RCE viaCOPY ... FROM PROGRAM. The operator now pinssearch_path = pg_catalog, public, pg_tempon every pooled connection so it ships in the startup message and takes precedence over tenant-controlled defaults. (#10774,GHSA-x8c2-3p4r-v9r6) -
GHSA-7qwx-x8ff-3px9: authenticated operator-to-instance-manager calls: the instance manager's remote webserver relied on network isolation rather than authentication for its operator-only control endpoints, so any party able to reach the pod's status port could invoke them, disrupting backup orchestration and WAL archival and reading operational metadata. (The upgrade endpoint is SHA-256-pinned, so this did not permit arbitrary code execution.) The operator now generates an in-memory ECDSA P-256 client certificate at startup and reconciles its SHA-256 fingerprint into the cluster status; the instance manager rejects requests to sensitive endpoints that do not present a matching certificate. This hardening is not backported; earlier releases should continue to restrict the status port with aNetworkPolicy. (#10579,GHSA-7qwx-x8ff-3px9) -
CVE-2026-55765/GHSA-w3gf-xc94-wvmj: operator-side SCRAM-SHA-256 password encoding: the operator now SCRAM-SHA-256 encodes cleartext role passwords before issuingCREATE/ALTER ROLE ... PASSWORD, so the literal PostgreSQL parses (and that extensions such aspg_stat_statementsorpgauditmay capture) is the SCRAM verifier rather than the cleartext secret. Pre-hashed (MD5 or SCRAM) values are forwarded unchanged, and the per-Secret annotationcnpg.io/passwordPassthrough: "enabled"opts out. (#10724,GHSA-w3gf-xc94-wvmj)
Changes
-
Added support for Kubernetes 1.36. (#10900)
-
Updated the default PostgreSQL version to 18.4. (#10719)
-
Updated the Kubernetes versions used to test the operator on public cloud providers. (#10720, #10563, #11033)
Fixes
-
Fixed declarative
Database,Publication, andSubscriptionobjects reporting a stale primary-side status forever after their cluster was demoted to a replica; the controller now re-checks the replica condition and watches theClusterso a demotion is detected promptly. (#10871) -
Fixed non-sequential pod names (for example
-1,-3) caused by the instance serial counter being advanced before the correspondingJoband PVCs were created; the bump is now persisted only after those resources exist. (#10491) -
Fixed deletion of a
Database,Publication, orSubscriptiongetting stuck inTerminatingon a replica cluster, where the replica gate ran before the finalizer reconciler and the finalizer was never released. On a replica the PostgreSQL object is left to the primary cluster. (#10853) -
Fixed a conflicting duplicate
DatabaseorSubscriptionwith adeletereclaim policy dropping the PostgreSQL object owned by the surviving CR; the drop is now gated on a recorded reconciliation. (#10870) -
Fixed the
postgressuperuser being left locked out after superuser access was disabled and then re-enabled, because the cached secret version was not invalidated and the password was never re-applied. Diagnosed by @mhartmann-jaconi. (#10834) -
Fixed backups getting stuck in the
startedphase when the instance manager running them was restarted (for example by the in-place upgrade following an operator upgrade) before the backup reachedrunning; the reconciliation is now rescheduled so the lost session is detected. (#10859) -
Fixed
exec/attachstreaming to negotiate WebSocket with a SPDY fallback, restoring compatibility both with Kubernetes versions that have removed SPDY and with platforms such as OpenShift that reject WebSocket exec upgrades. Contributed by @bartscheers. (#10876, #10933) -
Fixed resource leaks when concurrent
Backupobjects raced: backups now run in strict creation-time order, so an already-executing backup is never preempted by a newer one and its replication slot and PostgreSQL session are no longer orphaned on the primary. Contributed by @GabriFedi97. (#10747) -
Fixed role reconciliation clearing the password on a PostgreSQL role when the referenced Secret could not be fetched; the role is now left untouched until the Secret becomes available, and per-action errors are aggregated for better visibility. (#10053)
-
Fixed a bootstrap failure where a metrics-exporter setup error (commonly a duplicate-key race with the controller) rolled back
streaming_replicacreation and wedged replica joins. The metrics-exporter step now runs in a separate transaction. Contributed by @BlaiseAntony. (#10749) -
Fixed a
ScheduledBackupcontroller loop that occurred when aBackupwas created but its status patch never landed; the controller now adopts an existingBackupfor the next iteration instead of looping onAlreadyExists. (#10612) -
Fixed a nil-pointer panic when reconciling a
PoolerwhoseClusterhas been deleted. (#10667) -
Fixed bootstrap log handling so that all named log pipes (
postgres,postgres.csv, andpostgres.json) get consumers duringWithActiveInstance, preventing regular files from being created in place of the named pipes. (#10043) -
Fixed generation of invalid IPv6 URLs by wrapping the address in square brackets. Contributed by @Infinoid. (#10682)
-
Fixed an external cluster plugin still being treated as active when its configuration set
enabled: false. (#10932) -
Fixed a race during bootstrap recovery from an object store where the restore job could read a stale
Cluster(primary not yet recorded and timeline still unset) and have its.historyfiles rejected by the split-brain guard. When this happened, recovery stopped at the base backup's timeline and silently dropped transactions committed on later timelines. History files are now allowed while the cluster timeline is unset. Contributed by @dennispidun. (#10818) -
Fixed a race where deleting an instance's PVCs could leave the instance permanently stuck: if the data PVC was removed while a WAL PVC was still terminating, the operator recreated the instance bound to the terminating volume, leaving the Pod unschedulable and blocking all further reconciliation. The operator now waits for terminating PVCs to be fully removed before recreating or reattaching an instance, and surfaces the wait through a log line and the cluster phase. (#11017)
-
Fixed a cache race during cluster creation when the server and client CA resolve to the same Secret (the default): a stale informer cache triggered a redundant
Createthat failed withAlreadyExistsand could leave the cluster stuck inUnable to create required cluster objects. The operator now reuses the already-fetched CA Secret when the names match. (#10989) -
Fixed the
pg_basebackupbootstrap path overwriting or failing on a pre-existingPGDATA(for example after a replica Pod restart) by enforcing the same pre-flight directory check already applied by the other bootstrap methods; this also protects statically provisioned PVCs from being silently overwritten. (#11006) -
Fixed the
Clusterphase flapping betweenHealthyand a plugin-failure phase when a post-reconcile plugin hook returned an error; theHealthyphase is now registered as the last step of a successful reconciliation, so a loop that ends in a plugin error never reportsHealthy. Contributed by @GabriFedi97. (#10421) -
Fixed stale certificate data and partial reads after an external server's Secret was rotated (for example a CA bundle shrinking from two certificates to one): the file is now written atomically, so libpq always reads either the old or the new value, never a mix. Contributed by @Anand-240. (#10975)
-
Fixed plugin connectivity to use the plugin
ServiceFQDN instead of its short name, avoiding failures when a cluster-level proxy is automatically injected into pods. Contributed by @kdautrey. (#10921) -
Fixed excessive operator log noise from the per-request
Clustercreate/update validation webhook messages, now logged atdebuginstead ofinfo. (#10984) -
Fixed
spec.postgresql.parametersaccepting keys that are not valid PostgreSQL parameter names, which could inject arbitrary directives intopostgresql.conf; key names are now validated by the webhook. (#11029) -
Fixed a switchover deadlock when a WAL-archiver plugin was enabled on an existing cluster: with
primaryUpdateMethod: switchoverthe primary could not be rolled out because a clean demotion needs the archiver sidecar that is still missing. The operator now recreates the primary Pod in place so the sidecar is injected and archiving resumes. The check also covers plugins that inject the archiver as a native sidecar (an init container withrestartPolicy: Always), such as the Barman Cloud plugin. (#11032, #11059) -
Fixed a cluster staying in
Setting up primaryindefinitely when the instance-creation Job exhausted its backoff limit; the operator now detects the terminal Job failure and marks the cluster unrecoverable, naming the failed Job and pointing to its logs. (#11035) -
Fixed a first-primary bootstrap deadlock where a status-patch conflict after the data PVC was created but before the initialization Job was started left the orphan Pending PVC counted as an instance, blocking the bootstrap gate; the PVC-state reconciler now recreates the bootstrap Job reusing the assigned serial. (#11039)
-
Fixed external cluster names and secret selector references being joined into filesystem paths without validation, letting a
..component or path separator escape the external secrets directory when the instance manager dumps connection material; these values are now rejected at the validating webhook and re-checked at the write site. Reported by @r0binak. (#11045) -
Fixed a backup getting stuck in
pendingforever: the concurrent-backup gate ran on every reconcile and could overwrite an already-completed phase written asynchronously by the instance manager. The gate now runs only while the backup phase is still unset orpending. (#11056) -
Fixed a declarative
VolumeSnapshotbackup being permanently marked as failed when a stale cache made the operator re-create a snapshot it had already provisioned, failing withAlreadyExists. The operator now tolerates the collision when the existing snapshot carries this backup's label and adopts it; a collision with a foreign snapshot still surfaces as an error. (#11071) -
Fixed a volume snapshot backup being discarded on a transient instance-manager connection error (for example a dial timeout from a brief pod-network disruption) during the finalize step, even when its snapshots were already provisioned; such network errors are now retried instead of treated as terminal. (#11069)
-
Fixed a replica switchover losing its
status.demotionTokenwhen a reconcile was requeued between storing the token and cleaning up the transition metadata (for example a cleanup patch failing against a flaky webhook); the empty no-change token is no longer patched back over the stored value. (#11075) -
cnpgplugin:-
Fixed
kubectl cnpg psqlon Windows, where execution relied on a Unix-only system call and failed with "not supported by windows"; Windows now launcheskubectl execas a child process. Contributed by @Utkarsh-sharma47. (#10972) -
Fixed an unbounded memory leak in
kubectl cnpg logs -fon busy clusters, where a per-log-group timer was never released; timers are now reused across iterations. Contributed by @Anand-240. (#10976)
-
Supported versions
- Kubernetes 1.36, 1.35, and 1.34
- PostgreSQL 18, 17, 16, 15, and 14
- PostgreSQL 18.4 is the default image
- PostgreSQL 14 support ends on November 12, 2026