plugin-barman-cloud/internal/cnpgi/operator
Armando Ruocco f73945ed55 fix: enable LeaderElectionReleaseOnCancel for smooth RollingUpdates
Enable the LeaderElectionReleaseOnCancel option in the controller manager
to fix a deadlock issue during RollingUpdate deployments with leader
election enabled.

Without this setting, the old pod holds the leader lease during shutdown,
preventing the new pod from becoming ready. This creates a deadlock where
Kubernetes won't terminate the old pod because the new pod isn't ready,
and the new pod can't become ready because it can't acquire the lease.

With LeaderElectionReleaseOnCancel enabled, the old pod voluntarily
releases the lease when it receives a shutdown signal, allowing the new
pod to acquire leadership immediately and become ready, enabling smooth
rolling updates.

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
2025-10-24 11:50:06 +02:00
..
config feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
specs feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
doc.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
identity.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
lifecycle_certificates.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
lifecycle_envs.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
lifecycle_resources.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
lifecycle_test.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
lifecycle.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
manager.go fix: enable LeaderElectionReleaseOnCancel for smooth RollingUpdates 2025-10-24 11:50:06 +02:00
ownership.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
reconciler.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
start.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
suite_test.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00