SIGN IN SIGN UP

Update maxUnavailable calculation for leader StatefulSet (#781)

* Correctly set maxUnavailable on the leader StatefulSet

* Fix sts.maxUnavailable calculation edge cases.

Fix maxSurge calculation to be capped at lws.replicas, and evaluate percentages against sts.replicas rather than lws.replicas. Also add unit tests to prevent regressions.
A
Adin Ilfeld committed
d4d6b172cf767386d48f7fb695cb79206f8c022c
Parent: 7a4e3c1
Committed by GitHub <noreply@github.com> on 3/24/2026, 11:40:13 PM