Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 331 for podspec_ (0.18 sec)

  1. pkg/registry/core/pod/storage/storage_test.go

    				ObjectMeta: metav1.ObjectMeta{Name: "foo"},
    				Spec: api.PodSpec{
    					Containers: []api.Container{
    						{Name: "ctr"},
    					},
    				},
    				Status: api.PodStatus{PodIPs: []api.PodIP{{IP: expectedIP}}},
    			},
    			query:    "foo",
    			location: expectedIP,
    		},
    		{
    			pod: api.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo"},
    				Spec: api.PodSpec{
    					Containers: []api.Container{
    						{Name: "ctr"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 07:18:44 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  2. pkg/config/model_test.go

    			func(c Spec) Spec {
    				c.(*networking.VirtualService).Gateways = []string{"bar"}
    				return c
    			},
    			protocmp.Transform(),
    		},
    		// Kubernetes type
    		{
    			&corev1.PodSpec{ServiceAccountName: "foobar"},
    			func(c Spec) Spec {
    				c.(*corev1.PodSpec).ServiceAccountName = "bar"
    				return c
    			},
    			nil,
    		},
    		// gateway-api type
    		{
    			&k8s.GatewayClassSpec{ControllerName: "foo"},
    			func(c Spec) Spec {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 17:37:32 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. pkg/volume/util/util_test.go

    		desc       string
    		pod        *v1.Pod
    		wantFsUser *int64
    	}{
    		{
    			desc: "no runAsUser specified",
    			pod: &v1.Pod{
    				Spec: v1.PodSpec{},
    			},
    			wantFsUser: nil,
    		},
    		{
    			desc: "some have runAsUser specified",
    			pod: &v1.Pod{
    				Spec: v1.PodSpec{
    					SecurityContext: &v1.PodSecurityContext{},
    					InitContainers: []v1.Container{
    						{
    							SecurityContext: &v1.SecurityContext{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  4. pkg/kubelet/lifecycle/predicate_test.go

    			pod:             &v1.Pod{Spec: v1.PodSpec{OS: &v1.PodOS{Name: v1.OSName(goruntime.GOOS)}}},
    			expectRejection: false,
    		},
    		{
    			name:            "OS field mismatch",
    			pod:             &v1.Pod{Spec: v1.PodSpec{OS: &v1.PodOS{Name: "dummyOS"}}},
    			expectRejection: true,
    		},
    		{
    			name:            "no OS field",
    			pod:             &v1.Pod{Spec: v1.PodSpec{}},
    			expectRejection: false,
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 23:13:50 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. pkg/controller/volume/attachdetach/util/util_test.go

    			createNodeName: nodeName,
    			pod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Name:      "kube-apiserver",
    					Namespace: "default",
    				},
    				Spec: v1.PodSpec{
    					Volumes: []v1.Volume{
    						{
    							Name: migratedVolume,
    							VolumeSource: v1.VolumeSource{
    								HostPath: hostPath,
    							},
    						},
    					},
    				},
    			},
    			wantVolume: &v1.Volume{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 12 05:42:38 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/topology_hints_test.go

    			registeredDevices: []string{},
    			expected:          map[string]int{},
    		},
    		{
    			description: "Init container requests device plugin resource",
    			pod: &v1.Pod{
    				Spec: v1.PodSpec{
    					InitContainers: []v1.Container{
    						{
    							Resources: v1.ResourceRequirements{
    								Limits: v1.ResourceList{
    									v1.ResourceName(v1.ResourceCPU):    resource.MustParse("2"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 47.5K bytes
    - Viewed (0)
  7. pkg/api/v1/pod/util.go

    // false if visiting was short-circuited.
    func VisitContainers(podSpec *v1.PodSpec, mask ContainerType, visitor ContainerVisitor) bool {
    	if mask&InitContainers != 0 {
    		for i := range podSpec.InitContainers {
    			if !visitor(&podSpec.InitContainers[i], InitContainers) {
    				return false
    			}
    		}
    	}
    	if mask&Containers != 0 {
    		for i := range podSpec.Containers {
    			if !visitor(&podSpec.Containers[i], Containers) {
    				return false
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 17:18:04 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  8. cni/pkg/util/podutil_test.go

    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestGetPodIPIfPodIPPresent(t *testing.T) {
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: "derp",
    		},
    		Status: corev1.PodStatus{
    			PodIP: "11.1.1.12",
    		},
    	}
    
    	podIPs := GetPodIPsIfPresent(pod)
    	assert.Equal(t, len(podIPs), 1)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 03 19:29:42 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/labels_test.go

    			Name:                       "test_pod",
    			Namespace:                  "test_pod_namespace",
    			UID:                        "test_pod_uid",
    			DeletionGracePeriodSeconds: &deletionGracePeriod,
    		},
    		Spec: v1.PodSpec{
    			Containers:                    []v1.Container{*container},
    			TerminationGracePeriodSeconds: &terminationGracePeriod,
    		},
    	}
    
    	var tests = []struct {
    		description string
    		expected    *labeledContainerInfo
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/imagelocality/image_locality_test.go

    	test40250 := v1.PodSpec{
    		Containers: []v1.Container{
    			{
    
    				Image: "gcr.io/40",
    			},
    			{
    				Image: "gcr.io/250",
    			},
    		},
    	}
    
    	test40300 := v1.PodSpec{
    		Containers: []v1.Container{
    			{
    				Image: "gcr.io/40",
    			},
    			{
    				Image: "gcr.io/300",
    			},
    		},
    	}
    
    	testMinMax := v1.PodSpec{
    		Containers: []v1.Container{
    			{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 06:17:57 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top