@ -393,8 +393,10 @@ func (c *ReadyChecker) statefulSetReady(sts *appsv1.StatefulSet) bool {
c . log ( "StatefulSet is not ready: %s/%s. %d out of %d expected pods are ready" , sts . Namespace , sts . Name , sts . Status . ReadyReplicas , replicas )
return false
}
if sts . Status . CurrentRevision != sts . Status . UpdateRevision {
// This check only makes sense when all partitions are being upgraded otherwise during a
// partioned rolling upgrade, this condition will never evaluate to true, leading to
// error.
if partition == 0 && sts . Status . CurrentRevision != sts . Status . UpdateRevision {
c . log ( "StatefulSet is not ready: %s/%s. currentRevision %s does not yet match updateRevision %s" , sts . Namespace , sts . Name , sts . Status . CurrentRevision , sts . Status . UpdateRevision )
return false
}