Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for wantContainers (0.14 sec)

  1. pkg/api/v1/pod/util_test.go

    	testCases := []struct {
    		desc           string
    		spec           *v1.PodSpec
    		wantContainers []string
    		mask           ContainerType
    	}{
    		{
    			desc:           "empty podspec",
    			spec:           &v1.PodSpec{},
    			wantContainers: []string{},
    			mask:           AllContainers,
    		},
    		{
    			desc: "regular containers",
    			spec: &v1.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 32.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
Back to top