Merge pull request #72312 from Pingan2017/correct-ready-condition

correctly update pod ready condition
This commit is contained in:
Kubernetes Prow Robot
2019-01-02 16:51:50 -08:00
committed by GitHub

View File

@@ -131,7 +131,7 @@ func isPodStatusByKubeletEqual(oldStatus, status *v1.PodStatus) bool {
for _, c := range status.Conditions {
if kubetypes.PodConditionByKubelet(c.Type) {
_, oc := podutil.GetPodCondition(oldCopy, c.Type)
if oc == nil || oc.Status != c.Status {
if oc == nil || oc.Status != c.Status || oc.Message != c.Message || oc.Reason != c.Reason {
return false
}
}