mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
pod status should contain ContainerStatuses after eviction
This commit is contained in:
@@ -1472,6 +1472,8 @@ func TestSyncPodsSetStatusToFailedForPodsThatRunTooLong(t *testing.T) {
|
||||
status, found := kubelet.statusManager.GetPodStatus(pods[0].UID)
|
||||
assert.True(t, found, "expected to found status for pod %q", pods[0].UID)
|
||||
assert.Equal(t, v1.PodFailed, status.Phase)
|
||||
// check pod status contains ContainerStatuses, etc.
|
||||
assert.NotNil(t, status.ContainerStatuses)
|
||||
}
|
||||
|
||||
func TestSyncPodsDoesNotSetPodsThatDidNotRunTooLongToFailed(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user