Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for admitPV (0.15 sec)

  1. plugin/pkg/admission/noderestriction/admission.go

    	leaseResource         = coordapi.Resource("leases")
    	csiNodeResource       = storage.Resource("csinodes")
    	resourceSliceResource = resource.Resource("resourceslices")
    )
    
    // Admit checks the admission policy and triggers corresponding actions
    func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {
    	nodeName, isNode := p.nodeIdentifier.NodeIdentity(a.GetUserInfo())
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation.go

    	return ValidateStructuralWithOptions(fldPath, s, ValidationOptions{
    		// This would widen the schema for CRD if set to true, so first few releases will still
    		// not admit any. But it can still be used by libraries and
    		// declarative validation for native types
    		AllowNestedAdditionalProperties:                   false,
    		AllowNestedXValidations:                           false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/interfaces.go

    // if the hook cannot be completed. The function may NOT transform the provided
    // object.
    type ValidateObjectFunc func(ctx context.Context, obj runtime.Object) error
    
    // ValidateAllObjectFunc is a "admit everything" instance of ValidateObjectFunc.
    func ValidateAllObjectFunc(ctx context.Context, obj runtime.Object) error {
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 07:53:48 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher.go

    // markBookmarkAfterRvSent indicates that the given cacheWatcher
    // have sent a bookmark event with an RV >= the bookmarkAfterResourceVersion
    //
    // this function relies on the fact that the nonblockingAdd method
    // won't admit a bookmark event with an RV < the bookmarkAfterResourceVersion
    // so the first received bookmark event is considered to match the bookmarkAfterResourceVersion
    func (c *cacheWatcher) markBookmarkAfterRvSent(event *watchCacheEvent) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 12:22:41 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  5. pkg/scheduler/eventhandlers.go

    		if !includeAllFailures {
    			return admissionResults
    		}
    	}
    	return admissionResults
    }
    
    // AdmissionResult describes the reason why Scheduler can't admit the pod.
    // If the reason is a resource fit one, then AdmissionResult.InsufficientResource includes the details.
    type AdmissionResult struct {
    	Name                 string
    	Reason               string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:04 UTC 2024
    - 24K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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