Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for ContainerType (3.86 sec)

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

    	ExcludeOverhead bool
    	// ContainerFn is called with the effective resources required for each container within the pod.
    	ContainerFn func(res v1.ResourceList, containerType podutil.ContainerType)
    	// NonMissingContainerRequests if provided will replace any missing container level requests for the specified resources
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 13:58:16 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition.go

    	case cel.StringType:
    		return apiservercel.StringType
    	case cel.TimestampType:
    		return apiservercel.TimestampType
    	case cel.UintType:
    		return apiservercel.UintType
    	default:
    		if celType.HasTrait(traits.ContainerType) && celType.HasTrait(traits.IndexerType) {
    			parameters := celType.Parameters()
    			switch len(parameters) {
    			case 1:
    				elemType := convertCelTypeToDeclType(parameters[0])
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 21:06:39 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/types.go

    		InPlacePodVerticalScalingEnabled: utilfeature.DefaultFeatureGate.Enabled(features.InPlacePodVerticalScaling),
    		ContainerFn: func(requests v1.ResourceList, containerType podutil.ContainerType) {
    			non0CPUReq, non0MemReq := schedutil.GetNonzeroRequests(&requests)
    			switch containerType {
    			case podutil.Containers:
    				non0CPU += non0CPUReq
    				non0Mem += non0MemReq
    			case podutil.InitContainers:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  4. pkg/api/pod/util_test.go

    	"k8s.io/utils/pointer"
    )
    
    func TestVisitContainers(t *testing.T) {
    	setAllFeatureEnabledContainersDuringTest := ContainerType(0)
    	testCases := []struct {
    		desc           string
    		spec           *api.PodSpec
    		wantContainers []string
    		mask           ContainerType
    	}{
    		{
    			desc:           "empty podspec",
    			spec:           &api.PodSpec{},
    			wantContainers: []string{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    		isInBackOff, msg, err := m.doBackOff(pod, spec.container, podStatus, backOff)
    		if isInBackOff {
    			startContainerResult.Fail(err, msg)
    			klog.V(4).InfoS("Backing Off restarting container in pod", "containerType", typeName, "container", spec.container, "pod", klog.KObj(pod))
    			return err
    		}
    
    		metrics.StartedContainersTotal.WithLabelValues(metricLabel).Inc()
    		if sc.HasWindowsHostProcessRequest(pod, spec.container) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    			createdAt: fakeCreatedAt,
    			state:     runtimeapi.ContainerState_CONTAINER_RUNNING,
    		}
    	}
    	podutil.VisitContainers(&pod.Spec, podutil.AllFeatureEnabledContainers(), func(c *v1.Container, containerType podutil.ContainerType) bool {
    		containers = append(containers, makeFakeContainer(t, m, newTemplate(c)))
    		return true
    	})
    
    	fakeRuntime.SetFakeSandboxes([]*apitest.FakePodSandbox{sandbox})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  7. pkg/apis/core/validation/validation_test.go

    			},
    		},
    	}
    
    	for name, tt := range testCases {
    		for _, podOS := range tt.podOSes {
    			for containerType, setContainerStatuses := range containerTypes {
    				t.Run(fmt.Sprintf("[podOS=%v][containerType=%s] %s", podOS, containerType, name), func(t *testing.T) {
    					oldPod := &core.Pod{
    						ObjectMeta: metav1.ObjectMeta{
    							Name:            "foo",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
Back to top