Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for shouldIgnore (0.14 sec)

  1. plugin/pkg/admission/runtimeclass/admission.go

    func (r *RuntimeClass) Admit(ctx context.Context, attributes admission.Attributes, o admission.ObjectInterfaces) error {
    	// Ignore all calls to subresources or resources other than pods.
    	if shouldIgnore(attributes) {
    		return nil
    	}
    
    	pod, runtimeClass, err := r.prepareObjects(ctx, attributes)
    	if err != nil {
    		return err
    	}
    	if err := setOverhead(attributes, pod, runtimeClass); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 05:53:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. pkg/config/crd/validator.go

    	if iv.patternsByNamespace[namespace] == nil {
    		iv.patternsByNamespace[namespace] = sets.String{}
    	}
    	iv.patternsByNamespace[namespace].Insert(pattern)
    }
    
    // ShouldIgnore checks if a given namespaced name should be ignored based on the patterns.
    func (iv *ValidationIgnorer) ShouldIgnore(namespace, name string) bool {
    	iv.mu.RLock()
    	defer iv.mu.RUnlock()
    
    	patterns, exists := iv.patternsByNamespace[namespace]
    	if !exists {
    		return false
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 17 15:38:40 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  3. plugin/pkg/admission/podnodeselector/admission.go

    }
    
    // Admit enforces that pod and its namespace node label selectors matches at least a node in the cluster.
    func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {
    	if shouldIgnore(a) {
    		return nil
    	}
    	if !p.WaitForReady() {
    		return admission.NewForbidden(a, fmt.Errorf("not yet ready to handle request"))
    	}
    
    	resource := a.GetResource().GroupResource()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 8.3K bytes
    - Viewed (0)
Back to top