virt-operator: wait for all handler pods
Wait for all virt-handler pods to be ready before continuing with the
control-plane rollout, previously this function would assume the
daemonSet rollout to be complete as soon as N pods were updated and N-1
ready.
@@ -75,7 +75,7 @@ func DaemonsetIsReady(kv *v1.KubeVirt, daemonset *appsv1.DaemonSet, stores Store
return false
}
- return true
+ return podsReady == daemonset.Status.DesiredNumberScheduled
}
func DeploymentIsReady(kv *v1.KubeVirt, deployment *appsv1.Deployment, stores Stores) bool {
