Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,139 for batches (0.18 sec)

  1. pkg/test/framework/components/echo/match/matchers.go

    // Any doesn't filter out any echos.
    var Any Matcher = func(_ echo.Instance) bool {
    	return true
    }
    
    // And is an aggregate Matcher that requires all matches return true.
    func And(ms ...Matcher) Matcher {
    	return func(i echo.Instance) bool {
    		for _, m := range ms {
    			if m != nil && !m(i) {
    				return false
    			}
    		}
    		return true
    	}
    }
    
    // Or is an aggregate Matcher that requires at least one matches return true.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/object/matcher.go

    		return false
    	}
    	return selector.Matches(labels.Set(accessor.GetLabels()))
    
    }
    
    // MatchObjectSelector decideds whether the request matches the ObjectSelector
    // of the webhook. Only when they match, the webhook is called.
    func (m *Matcher) MatchObjectSelector(p ObjectSelectorProvider, attr admission.Attributes) (bool, *apierrors.StatusError) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 26 00:41:14 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/matcher.go

    	return v.Expression
    }
    
    func (v *MatchCondition) ReturnTypes() []*cel.Type {
    	return []*cel.Type{cel.BoolType}
    }
    
    var _ Matcher = &matcher{}
    
    // matcher evaluates compiled cel expressions and determines if they match the given request or not
    type matcher struct {
    	filter      celplugin.Filter
    	failPolicy  v1.FailurePolicyType
    	matcherType string
    	matcherKind string
    	objectName  string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 24 14:46:11 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. pkg/test/framework/components/echo/match/matcher.go

    // GetServiceMatches returns the subset of echo.Services that match this Matcher.
    func (m Matcher) GetServiceMatches(services echo.Services) echo.Services {
    	out := make(echo.Services, 0)
    	for _, s := range services {
    		if len(s) > 0 && m(s[0]) {
    			out = append(out, s)
    		}
    	}
    	return out
    }
    
    // First finds the first Instance that matches the Matcher.
    func (m Matcher) First(i echo.Instances) (echo.Instance, error) {
    	for _, i := range i {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 21 20:45:12 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/matcher.go

    }
    
    // Matcher decides if a request is exempted by the NamespaceSelector of a
    // webhook configuration.
    type Matcher struct {
    	NamespaceLister corelisters.NamespaceLister
    	Client          clientset.Interface
    }
    
    func (m *Matcher) GetNamespace(name string) (*v1.Namespace, error) {
    	return m.NamespaceLister.Get(name)
    }
    
    // Validate checks if the Matcher has a NamespaceLister and Client.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 00:53:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. pkg/util/filesystem/watcher.go

    	}
    
    	// Initialize watcher, fall back to no-op
    	var (
    		eventsCh chan fsnotify.Event
    		errorCh  chan error
    		watcher  watchAddRemover
    	)
    	if w, err := fsnotify.NewWatcher(); err != nil {
    		errorHandler(fmt.Errorf("error creating file watcher, falling back to poll at interval %s: %w", pollInterval, err))
    		watcher = noopWatcher{}
    	} else {
    		watcher = w
    		eventsCh = w.Events
    		errorCh = w.Errors
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 23:09:15 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. pkg/kube/inject/watcher.go

    	"istio.io/istio/pkg/kube/watcher/configmapwatcher"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/util/istiomultierror"
    )
    
    // Watcher watches for and reacts to injection config updates.
    type Watcher interface {
    	// SetHandler sets the handler that is run when the config changes.
    	// Must call this before Run.
    	SetHandler(func(*Config, string) error)
    
    	// Run starts the Watcher. Must call this after SetHandler.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. pilot/pkg/model/envoyfilter.go

    			} else {
    				// pre-compile the regex for proxy version if it exists
    				// ignore the error because validation catches invalid regular expressions.
    				cpw.ProxyVersionRegex, _ = regexp.Compile(cp.Match.Proxy.ProxyVersion)
    			}
    		}
    
    		if _, exists := out.Patches[cp.ApplyTo]; !exists {
    			out.Patches[cp.ApplyTo] = make([]*EnvoyFilterConfigPatchWrapper, 0)
    		}
    		if cpw.Operation == networking.EnvoyFilter_Patch_INSERT_AFTER ||
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 13:57:28 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. pilot/pkg/keycertbundle/watcher.go

    	id := w.watcherID
    	w.watchers[id] = ch
    	w.watcherID++
    
    	return id, ch
    }
    
    // RemoveWatcher removes the given watcher.
    func (w *Watcher) RemoveWatcher(id int32) {
    	w.mutex.Lock()
    	defer w.mutex.Unlock()
    	ch := w.watchers[id]
    	if ch != nil {
    		close(ch)
    	}
    	delete(w.watchers, id)
    }
    
    // SetAndNotify sets the key cert and root cert and notify the watchers.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 05 14:00:18 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/registry/generic/matcher.go

    Dr. Stefan Schimanski <******@****.***> 1486027168 +0100
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 03 06:33:43 UTC 2017
    - 1.6K bytes
    - Viewed (0)
Back to top