Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for shouldIgnore (0.38 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. plugin/pkg/admission/alwayspullimages/admission.go

    func (a *AlwaysPullImages) Admit(ctx context.Context, attributes admission.Attributes, o admission.ObjectInterfaces) (err error) {
    	// Ignore all calls to subresources or resources other than pods.
    	if shouldIgnore(attributes) {
    		return nil
    	}
    	pod, ok := attributes.GetObject().(*api.Pod)
    	if !ok {
    		return apierrors.NewBadRequest("Resource was marked with kind Pod but was unable to be converted")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 30 22:59:57 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. plugin/pkg/admission/podtolerationrestriction/admission.go

    }
    
    // Admit checks the admission policy and triggers corresponding actions
    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"))
    	}
    
    	pod := a.GetObject().(*api.Pod)
    	var extraTolerations []api.Toleration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 29 20:07:59 UTC 2020
    - 8.3K bytes
    - Viewed (0)
  6. plugin/pkg/admission/serviceaccount/admission.go

    	}
    	return nil
    }
    
    // Admit verifies if the pod should be admitted
    func (s *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) (err error) {
    	if shouldIgnore(a) {
    		return nil
    	}
    	if a.GetOperation() != admission.Create {
    		// we only mutate pods during create requests
    		return nil
    	}
    	pod := a.GetObject().(*api.Pod)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/annotations/impl/DefaultTypeAnnotationMetadataStore.java

                                .solution("Remove the annotations on '" + fieldName + "'")
                        );
                    });
            }
            return propertiesMetadata;
        }
    
        private boolean shouldIgnore(Method method) {
            if (method.isSynthetic()) {
                return true;
            }
            if (method.isBridge()) {
                return true;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:36 UTC 2024
    - 37.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/resource_operation_safety_analysis.cc

        const std::function<Status(const Node&, bool*)>& resource_ops_to_ignore,
        std::optional<XlaResourceOpKind>* out_resource_op_kind) {
      bool should_ignore = false;
      if (resource_ops_to_ignore) {
        TF_RETURN_IF_ERROR(resource_ops_to_ignore(n, &should_ignore));
      }
      if (should_ignore) {
        *out_resource_op_kind = std::nullopt;
        return absl::OkStatus();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top