Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SortStatusesOfInitContainers (0.24 sec)

  1. pkg/kubelet/types/types.go

    				statuses[current], statuses[j] = statuses[j], statuses[current]
    				current++
    				break
    			}
    		}
    	}
    }
    
    // SortStatusesOfInitContainers returns the statuses of InitContainers of pod p,
    // in the order that they appear in its spec.
    func SortStatusesOfInitContainers(p *v1.Pod, statusMap map[string]*v1.ContainerStatus) []v1.ContainerStatus {
    	containers := p.Spec.InitContainers
    	statuses := []v1.ContainerStatus{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 13:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. pkg/kubelet/types/types_test.go

    		},
    	}
    	for _, data := range tests {
    		pod.Spec.InitContainers = data.containers
    		result := SortStatusesOfInitContainers(&pod, data.statusMap)
    		require.Equal(t, result, data.expectStatuses, "Unexpected result from SortStatusesOfInitContainers: %v", result)
    	}
    }
    
    func TestNewTimestamp(t *testing.T) {
    	timeStart := time.Now()
    	timestamp := NewTimestamp()
    	timeEnd := time.Now()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 19 08:28:25 UTC 2022
    - 6.2K bytes
    - Viewed (0)
Back to top