Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,623 for ContainerT (0.19 sec)

  1. pkg/api/v1/resource/helpers_test.go

    				},
    			},
    		},
    		{
    			description:    "no limited containers should result in no limits for the pod",
    			expectedLimits: v1.ResourceList{},
    			initContainers: []v1.Container{},
    			containers: []v1.Container{
    				{
    					// Unlimited container
    				},
    			},
    		},
    		{
    			description: "one limited and one unlimited container should result in the limited container's limits for the pod",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:13 UTC 2023
    - 38.3K bytes
    - Viewed (0)
  2. pkg/kubelet/container/ref.go

    // within the given pod. Returns an error if the reference can't be constructed or the
    // container doesn't actually belong to the pod.
    func GenerateContainerRef(pod *v1.Pod, container *v1.Container) (*v1.ObjectReference, error) {
    	fieldPath, err := fieldPath(pod, container)
    	if err != nil {
    		// TODO: figure out intelligent way to refer to containers that we implicitly
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 00:55:30 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_sandbox_test.go

    		},
    		{
    			name: "Pod with HostProcess containers and HostNetwork not set",
    			podSpec: &v1.PodSpec{
    				SecurityContext: &v1.PodSecurityContext{
    					WindowsOptions: &v1.WindowsSecurityContextOptions{
    						HostProcess: &trueVar,
    					},
    				},
    				Containers: []v1.Container{{
    					Name: containerName,
    				}},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  4. pkg/kubelet/status/generate_test.go

    	noInitContainer := &v1.PodSpec{}
    	oneInitContainer := &v1.PodSpec{
    		InitContainers: []v1.Container{
    			{Name: "1234"},
    		},
    		Containers: []v1.Container{
    			{Name: "regular"},
    		},
    	}
    	twoInitContainer := &v1.PodSpec{
    		InitContainers: []v1.Container{
    			{Name: "1234"},
    			{Name: "5678"},
    		},
    		Containers: []v1.Container{
    			{Name: "regular"},
    		},
    	}
    	oneRestartableInitContainer := &v1.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  5. pkg/api/v1/pod/util_test.go

    	testCases := []struct {
    		name       string
    		containers []v1.Container
    		port       intstr.IntOrString
    		expected   int
    		pass       bool
    	}{{
    		name:       "valid int, no ports",
    		containers: []v1.Container{{}},
    		port:       intstr.FromInt32(93),
    		expected:   93,
    		pass:       true,
    	}, {
    		name: "valid int, with ports",
    		containers: []v1.Container{{Ports: []v1.ContainerPort{{
    			Name:          "",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 32.1K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/noderesources/resource_allocation_test.go

    						{}, {},
    					},
    				},
    			},
    			// should accumulate once per container without a request
    			expected: map[v1.ResourceName]int64{
    				v1.ResourceCPU:    2 * util.DefaultMilliCPURequest,
    				v1.ResourceMemory: 2 * util.DefaultMemoryRequest,
    			},
    		},
    		{
    			name: "request container + requestless container",
    			pod: v1.Pod{
    				Spec: v1.PodSpec{
    					Containers: []v1.Container{
    						{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 09 23:15:53 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    		var activePods []*v1.Pod
    		for p := range tc.assignments {
    			pod := v1.Pod{}
    			pod.UID = types.UID(p)
    			for c := range tc.assignments[p] {
    				container := v1.Container{}
    				container.Name = c
    				pod.Spec.Containers = append(pod.Spec.Containers, container)
    			}
    			activePods = append(activePods, &pod)
    		}
    
    		m := manager{
    			policy: &staticPolicy{
    				topology: topology,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. pkg/kubelet/qos/policy_test.go

    )
    
    var (
    	cpuLimit = v1.Pod{
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{
    				{
    					Resources: v1.ResourceRequirements{
    						Limits: v1.ResourceList{
    							v1.ResourceName(v1.ResourceCPU): resource.MustParse("10"),
    						},
    					},
    				},
    			},
    		},
    	}
    
    	memoryLimitCPURequest = v1.Pod{
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{
    				{
    					Resources: v1.ResourceRequirements{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 03 21:34:27 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  9. pkg/apis/core/v1/helper/qos/qos_test.go

    	return v1.Container{
    		Name:      name,
    		Resources: getResourceRequirements(requests, limits),
    	}
    }
    
    func newPod(name string, containers []v1.Container) *v1.Pod {
    	return &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: name,
    		},
    		Spec: v1.PodSpec{
    			Containers: containers,
    		},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 14:47:37 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_termination_order.go

    	}
    
    	var mainContainerChannels []chan struct{}
    	// sidecar containers need to wait on main containers, so we create a channel per main container
    	// for them to wait on
    	for _, c := range pod.Spec.Containers {
    		channel := make(chan struct{})
    		to.terminated[c.Name] = channel
    		mainContainerChannels = append(mainContainerChannels, channel)
    
    		// if its not a running container, pre-close the channel so nothing waits on it
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 00:07:21 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top