- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for ShouldIgnore (0.23 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/annotations/impl/DefaultTypeAnnotationMetadataStore.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 21:54:36 UTC 2024 - 37.6K bytes - Viewed (0)