Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NewRuntimeClass (0.2 sec)

  1. pkg/kubelet/runtimeclass/testing/fake_manager.go

    // and populates it with a few test RuntimeClass objects.
    func NewPopulatedClient() clientset.Interface {
    	return fake.NewSimpleClientset(
    		NewRuntimeClass(EmptyRuntimeClass, ""),
    		NewRuntimeClass(SandboxRuntimeClass, SandboxRuntimeHandler),
    	)
    }
    
    // StartManagerSync starts the manager, and waits for the informer cache to sync.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  2. pkg/registry/node/runtimeclass/strategy.go

    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (strategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newRuntimeClass := obj.(*node.RuntimeClass)
    	oldRuntimeClass := old.(*node.RuntimeClass)
    
    	_, _ = newRuntimeClass, oldRuntimeClass
    }
    
    // Validate validates a new RuntimeClass. Validation must check for a correct signature.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 09 08:17:32 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  3. plugin/pkg/admission/runtimeclass/admission.go

    	if err != nil {
    		return err
    	}
    	if err := validateOverhead(attributes, pod, runtimeClass); err != nil {
    		return err
    	}
    
    	return nil
    }
    
    // NewRuntimeClass creates a new RuntimeClass admission control handler
    func NewRuntimeClass() *RuntimeClass {
    	return &RuntimeClass{
    		Handler: admission.NewHandler(admission.Create),
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 05:53:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. plugin/pkg/admission/runtimeclass/admission_test.go

    }
    
    func newRuntimeClassForTest(
    	addLister bool,
    	listerObject *nodev1.RuntimeClass,
    	addClient bool,
    	clientObject *nodev1.RuntimeClass) *RuntimeClass {
    	runtimeClass := NewRuntimeClass()
    
    	if addLister {
    		informerFactory := informers.NewSharedInformerFactory(nil, controller.NoResyncPeriodFunc())
    		runtimeClass.SetExternalKubeInformerFactory(informerFactory)
    		if listerObject != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 17 01:30:14 UTC 2022
    - 17.5K bytes
    - Viewed (0)
Back to top