Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,058 for Patches (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/matchers.kt

    package org.gradle.kotlin.dsl.fixtures
    
    import org.hamcrest.CoreMatchers.containsString
    import org.hamcrest.Matcher
    
    
    fun containsMultiLineString(string: String): Matcher<String> =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 221 bytes
    - Viewed (0)
  7. pkg/config/mesh/kubemesh/watcher.go

    	})
    
    	go c.Run(stop)
    
    	// Ensure the ConfigMap is initially loaded if present.
    	if !client.WaitForCacheSync("configmap watcher", stop, c.HasSynced) {
    		log.Error("failed to wait for cache sync")
    	}
    	return w
    }
    
    func AddUserMeshConfig(client kube.Client, watcher mesh.Watcher, namespace, key, userMeshConfig string, stop <-chan struct{}) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 25 20:54:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. pkg/config/mesh/watcher.go

    func NewFixedWatcher(mesh *meshconfig.MeshConfig) Watcher {
    	iw := internalWatcher{}
    	iw.MeshConfig.Store(mesh)
    	return &iw
    }
    
    // NewFileWatcher creates a new Watcher for changes to the given mesh config file. Returns an error
    // if the given file does not exist or failed during parsing.
    func NewFileWatcher(fileWatcher filewatcher.FileWatcher, filename string, multiWatch bool) (Watcher, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 20 18:33:38 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/authorization/cel/matcher.go

    Rita Zhang <******@****.***> 1709268932 -0800
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. 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)
Back to top