Files
helm/pkg
Aman Nijhawan eea2f27bab Fixes Readiness Check for statefulsets using partitioned rolling update. (#11774)
* Fixes Readiness Check for statefulsets using partitioned rolling update.
Fixes #11773

This change updates readiness check in ready.go to correctly
account for statefulsets that are utilizing a partitioned upgrade.
These statefulsets only upgrade a subset of the managed pods with each call
to helm upgrade. This causes the upgrade to legitimately hit the condition where
sts.status.CurrentRevision != sts.Status.UpdateRevision which causes helm to mark
the upgrade has failed when in fact it is successful.

This change fixes that behavior to only check when partition is unspecified or 0.

Signed-off-by: Aman Nijhawan <anijhawan@yugabyte.com>

* Adding a unit test to verify that partitioned rolling upgrade for a statefulset works.

Signed-off-by: Aman Nijhawan <anijhawan@yugabyte.com>

---------

Signed-off-by: Aman Nijhawan <anijhawan@yugabyte.com>
Co-authored-by: Aman Nijhawan <anijhawan@yugabyte.com>
2023-03-30 10:39:29 -06:00
..
2023-03-22 11:52:30 -04:00
2023-03-22 11:52:30 -04:00
2023-03-22 11:52:30 -04:00
2023-03-22 11:29:26 -04:00
2023-03-22 11:29:26 -04:00
2023-03-22 11:52:30 -04:00
2022-04-14 07:56:31 -07:00
2023-03-22 11:52:30 -04:00
2023-03-22 11:52:30 -04:00
2023-03-22 11:52:30 -04:00
2023-03-22 11:29:26 -04:00
2023-03-22 11:52:30 -04:00
2023-03-22 11:52:30 -04:00
2023-03-22 11:52:30 -04:00
2020-09-23 23:32:56 +02:00
2023-03-22 11:29:26 -04:00