- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for wantContainers (0.31 sec)
-
pkg/api/pod/util_test.go
setAllFeatureEnabledContainersDuringTest := ContainerType(0) testCases := []struct { desc string spec *api.PodSpec wantContainers []string mask ContainerType }{ { desc: "empty podspec", spec: &api.PodSpec{}, wantContainers: []string{}, mask: AllContainers, }, { desc: "regular containers", spec: &api.PodSpec{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 108.8K bytes - Viewed (0) -
pkg/kubelet/container/helpers_test.go
Name: "debug-container", }}, }, }, }, haveName: "debug-container", wantContainer: &v1.Container{Name: "debug-container"}, }, } { t.Run(tc.name, func(t *testing.T) { gotContainer := GetContainerSpec(tc.havePod, tc.haveName) if diff := cmp.Diff(tc.wantContainer, gotContainer); diff != "" { t.Fatalf("GetContainerSpec for %q returned diff (-want +got):%v", tc.name, diff) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 01:55:46 UTC 2024 - 24.5K bytes - Viewed (0)