Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for shouldIgnore (0.1 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)
Back to top