CloudNativePG 1.30.0 Released: New DatabaseRole CRD and Lease-Based Primary Election

PostgreSQL·6 Jul 2026·2 min read
#postgresql

The CloudNativePG Community has released CloudNativePG 1.30.0, a minor update that brings significant enhancements for PostgreSQL operators on Kubernetes. This release introduces a DatabaseRole Custom Resource Definition (CRD) for declarative, GitOps-friendly role management and a lease-based primary election primitive for safer failover, along with security and operational improvements. Maintenance versions 1.29.2 and 1.28.4 are also available, with 1.28.4 marking the final release of the 1.28.x series, which reaches its End-of-Life (EOL) on June 30, 2026. Users on 1.28 are encouraged to upgrade to 1.29 or 1.30. The 1.29.x series EOL is confirmed as September 29, 2026.

  • DatabaseRole CRD: The headline feature is the new DatabaseRole custom resource, enabling declarative management of PostgreSQL roles as standalone Kubernetes objects. Each role has its own lifecycle and status, decoupling role management from the Cluster resource's .spec.managed.roles stanza. This simplifies GitOps workflows and allows fine-grained RBAC.
  • Lease-Based Primary Election: A new lease-based primitive replaces the previous mechanism for primary election during failover, offering safer and more reliable transitions. It reduces the risk of split-brain scenarios and improves consistency.
  • Security Enhancements: Includes updates to TLS certificate handling and improved secret management, aligning with Kubernetes security best practices.
  • Operational Improvements: Better handling of recovery and bootstrap scenarios, plus expanded metrics for monitoring.
  • EOL Announcements: CloudNativePG 1.28.x reaches EOL on June 30, 2026; 1.29.x EOL on September 29, 2026. Users are advised to plan upgrades accordingly.

For developers running PostgreSQL on Kubernetes, the DatabaseRole CRD is a game-changer: it enables true GitOps-driven role management, where roles can be version-controlled and applied independently of cluster configurations. The lease-based election enhances resilience during failovers, a critical improvement for production workloads. Together, these features reinforce CloudNativePG as the leading operator for PostgreSQL on Kubernetes, offering enterprise-grade reliability and operational simplicity.

Source: https://www.postgresql.org/about/news/cloudnativepg-1300-released-3337/

Related

auto-curated · source linked above← all news