c.log("Deployment is not ready: %s/%s. observedGeneration (%d) does not match spec generation (%d).",dep.Namespace,dep.Name,dep.Status.ObservedGeneration,dep.ObjectMeta.Generation)
c.log.Debug("Deployment is not ready, observedGeneration does not match spec generation","namespace",dep.GetNamespace(),"name",dep.GetName(),"observedGeneration",dep.Status.ObservedGeneration,"expectedGeneration",dep.ObjectMeta.Generation)
c.log("Deployment is not ready: %s/%s. %d out of %d expected pods are ready",dep.Namespace,dep.Name,rs.Status.ReadyReplicas,expectedReady)
c.log.Debug("Deployment is not ready, not all Pods are ready","namespace",dep.GetNamespace(),"name",dep.GetName(),"readyPods",rs.Status.ReadyReplicas,"totalPods",expectedReady)
c.log("DaemonSet is not ready: %s/%s. observedGeneration (%d) does not match spec generation (%d).",ds.Namespace,ds.Name,ds.Status.ObservedGeneration,ds.ObjectMeta.Generation)
c.log.Debug("DaemonSet is not ready, observedGeneration does not match spec generation","namespace",ds.GetNamespace(),"name",ds.GetName(),"observedGeneration",ds.Status.ObservedGeneration,"expectedGeneration",ds.ObjectMeta.Generation)
c.log("DaemonSet is not ready: %s/%s. %d out of %d expected pods have been scheduled",ds.Namespace,ds.Name,ds.Status.UpdatedNumberScheduled,ds.Status.DesiredNumberScheduled)
c.log.Debug("DaemonSet is not ready, not all Pods scheduled","namespace",ds.GetNamespace(),"name",ds.GetName(),"scheduledPods",ds.Status.UpdatedNumberScheduled,"totalPods",ds.Status.DesiredNumberScheduled)
c.log("DaemonSet is not ready: %s/%s. %d out of %d expected pods are ready",ds.Namespace,ds.Name,ds.Status.NumberReady,expectedReady)
c.log.Debug("DaemonSet is not ready. All Pods are not ready","namespace",ds.GetNamespace(),"name",ds.GetName(),"readyPods",ds.Status.NumberReady,"totalPods",expectedReady)
c.log("StatefulSet is not ready: %s/%s. observedGeneration (%d) does not match spec generation (%d).",sts.Namespace,sts.Name,sts.Status.ObservedGeneration,sts.ObjectMeta.Generation)
c.log.Debug("StatefulSet is not ready, observedGeneration doest not match spec generation","namespace",sts.GetNamespace(),"name",sts.GetName(),"observedGeneration",sts.Status.ObservedGeneration,"expectedGeneration",sts.ObjectMeta.Generation)
returnfalse
returnfalse
}
}
// If the update strategy is not a rolling update, there will be nothing to wait for
// If the update strategy is not a rolling update, there will be nothing to wait for
c.log("StatefulSet is not ready: %s/%s. %d out of %d expected pods have been scheduled",sts.Namespace,sts.Name,sts.Status.UpdatedReplicas,expectedReplicas)
c.log.Debug("StatefulSet is not ready, not all Pods have been scheduled","namespace",sts.GetNamespace(),"name",sts.GetName(),"readyPods",sts.Status.UpdatedReplicas,"totalPods",expectedReplicas)
returnfalse
returnfalse
}
}
ifint(sts.Status.ReadyReplicas)!=replicas{
ifint(sts.Status.ReadyReplicas)!=replicas{
c.log("StatefulSet is not ready: %s/%s. %d out of %d expected pods are ready",sts.Namespace,sts.Name,sts.Status.ReadyReplicas,replicas)
c.log.Debug("StatefulSet is not ready, not all Pods are ready","namespace",sts.GetNamespace(),"name",sts.GetName(),"readyPods",sts.Status.ReadyReplicas,"totalPods",replicas)
returnfalse
returnfalse
}
}
// This check only makes sense when all partitions are being upgraded otherwise during a
// This check only makes sense when all partitions are being upgraded otherwise during a
// partitioned rolling upgrade, this condition will never evaluate to true, leading to
// partitioned rolling upgrade, this condition will never evaluate to true, leading to
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)
c.log.Debug("StatefulSet is not ready, currentRevision does not match updateRevision","namespace",sts.GetNamespace(),"name",sts.GetName(),"currentRevision",sts.Status.CurrentRevision,"updateRevision",sts.Status.UpdateRevision)
returnfalse
returnfalse
}
}
c.log("StatefulSet is ready: %s/%s. %d out of %d expected pods are ready",sts.Namespace,sts.Name,sts.Status.ReadyReplicas,replicas)
c.log.Debug("StatefulSet is ready","namespace",sts.GetNamespace(),"name",sts.GetName(),"readyPods",sts.Status.ReadyReplicas,"totalPods",replicas)
c.log("ReplicationController is not ready: %s/%s. observedGeneration (%d) does not match spec generation (%d).",rc.Namespace,rc.Name,rc.Status.ObservedGeneration,rc.ObjectMeta.Generation)
c.log.Debug("ReplicationController is not ready, observedGeneration doest not match spec generation","namespace",rc.GetNamespace(),"name",rc.GetName(),"observedGeneration",rc.Status.ObservedGeneration,"expectedGeneration",rc.ObjectMeta.Generation)
c.log("ReplicaSet is not ready: %s/%s. observedGeneration (%d) does not match spec generation (%d).",rs.Namespace,rs.Name,rs.Status.ObservedGeneration,rs.ObjectMeta.Generation)
c.log.Debug("ReplicaSet is not ready, observedGeneration doest not match spec generation","namespace",rs.GetNamespace(),"name",rs.GetName(),"observedGeneration",rs.Status.ObservedGeneration,"expectedGeneration",rs.ObjectMeta.Generation)