- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for containerStatusbyCreatedList (0.33 sec)
-
pkg/kubelet/pod_container_deletor.go
containerDeletorBufferLimit = 50 ) type containerStatusbyCreatedList []*kubecontainer.Status type podContainerDeletor struct { worker chan<- kubecontainer.ContainerID containersToKeep int } func (a containerStatusbyCreatedList) Len() int { return len(a) } func (a containerStatusbyCreatedList) Swap(i, j int) { a[i], a[j] = a[j], a[i] } func (a containerStatusbyCreatedList) Less(i, j int) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 05 13:02:13 UTC 2022 - 4K bytes - Viewed (0) -
pkg/kubelet/pod_container_deletor_test.go
CreatedAt: time.Now().Add(4 * time.Second), State: kubecontainer.ContainerStateRunning, }, }, } testCases := []struct { containersToKeep int expectedContainersToDelete containerStatusbyCreatedList }{ { 0, []*kubecontainer.Status{pod.ContainerStatuses[3], pod.ContainerStatuses[2], pod.ContainerStatuses[1]}, }, { 1,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 19 15:48:08 UTC 2020 - 5.8K bytes - Viewed (0)