Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 26 of 26 for admitPV (0.11 sec)

  1. pkg/kubelet/kubelet_test.go

    	// list of pods to reject.
    	podsToReject []*v1.Pod
    }
    
    // Admit rejects all pods in the podsToReject list with a matching UID.
    func (a *testPodAdmitHandler) Admit(attrs *lifecycle.PodAdmitAttributes) lifecycle.PodAdmitResult {
    	for _, podToReject := range a.podsToReject {
    		if podToReject.UID == attrs.Pod.UID {
    			return lifecycle.PodAdmitResult{Admit: false, Reason: "Rejected", Message: "Pod is rejected"}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/container_manager_linux.go

    		opts.Annotations = append(opts.Annotations, resOpts.Annotations...)
    		opts.CDIDevices = append(opts.CDIDevices, resOpts.CDIDevices...)
    	}
    	// Allocate should already be called during predicateAdmitHandler.Admit(),
    	// just try to fetch device runtime information from cached state here
    	devOpts, err := cm.deviceManager.GetDeviceRunContainerOptions(pod, container)
    	if err != nil {
    		return nil, err
    	} else if devOpts == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go

    	}
    	if len(nodeName) != 0 {
    		tcPod.Spec.NodeName = nodeName
    	}
    }
    
    func (f mutateObjectUpdateFunc) Handles(operation admission.Operation) bool {
    	return true
    }
    
    func (f mutateObjectUpdateFunc) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) (err error) {
    	return f(ctx, a.GetObject(), a.GetOldObject())
    }
    
    func TestTransformDecodeErrorEnsuresBadRequestError(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    			nodeInfo: framework.NewNodeInfo(
    				newResourcePod(framework.Resource{MilliCPU: 0, Memory: 0, ScalarResources: map[v1.ResourceName]int64{extendedResourceA: 2}})),
    			name:                      "extended resource allocatable admits multiple init containers",
    			wantInsufficientResources: []InsufficientResource{},
    		},
    		{
    			pod: newResourceInitPod(newResourcePod(framework.Resource{}),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/genericapiserver.go

    		Defaulter:             apiGroupInfo.Scheme,
    		Typer:                 apiGroupInfo.Scheme,
    		Namer:                 runtime.Namer(meta.NewAccessor()),
    
    		EquivalentResourceRegistry: s.EquivalentResourceRegistry,
    
    		Admit:             s.admissionControl,
    		MinRequestTimeout: s.minRequestTimeout,
    		Authorizer:        s.Authorizer,
    	}
    }
    
    // NewDefaultAPIGroupInfo returns an APIGroupInfo stubbed with "normal" values
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/manager.go

    // Note in the special case after Kubelet restarts, device plugin resource capacities can
    // temporarily drop to zero till corresponding device plugins re-register. This is OK because
    // cm.UpdatePluginResource() run during predicate Admit guarantees we adjust nodeinfo
    // capacity for already allocated pods so that they can continue to run. However, new pods
    // requiring device plugin resources will not be scheduled till device plugin re-registers.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 43K bytes
    - Viewed (0)
Back to top