Unverified Commit 60ec6bf3 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #64867 from dixudx/missing_container_ready_ltt

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md. add missing LastTransitionTime of ContainerReady condition **What this PR does / why we need it**: add missing LastTransitionTime of ContainerReady condition **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: xref #64646 **Special notes for your reviewer**: /cc freehan yujuhong **Release note**: ```release-note add missing LastTransitionTime of ContainerReady condition ```
parents 9e9c4144 8285a265
...@@ -336,6 +336,9 @@ func (m *manager) updateStatusInternal(pod *v1.Pod, status v1.PodStatus, forceUp ...@@ -336,6 +336,9 @@ func (m *manager) updateStatusInternal(pod *v1.Pod, status v1.PodStatus, forceUp
return false return false
} }
// Set ContainersReadyCondition.LastTransitionTime.
updateLastTransitionTime(&status, &oldStatus, v1.ContainersReady)
// Set ReadyCondition.LastTransitionTime. // Set ReadyCondition.LastTransitionTime.
updateLastTransitionTime(&status, &oldStatus, v1.PodReady) updateLastTransitionTime(&status, &oldStatus, v1.PodReady)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment