Commit Graph

4 Commits

Author SHA1 Message Date
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
Marco Nenciarini
1be34fe13e
feat(ip): assign copyright to the Linux Foundation (#571)
Adopt the new attribution information for contributions to
CloudNativePG:

```
Copyright © contributors to CloudNativePG, established as
CloudNativePG a Series of LF Projects, LLC.
```

Adopt the SPDX format for Apache License 2.0

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2025-10-07 18:06:06 +02:00
Leonardo Cecchi
9d8fa079fe
fix: exit code 0 on clean shutdown (#70)
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2024-11-29 16:15:04 +01:00
Leonardo Cecchi
2f62d539c9
feat: sidecar role and rolebinding (#23)
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2024-10-02 15:03:07 +02:00