Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,121 for Reflector (0.13 sec)

  1. pkg/kubelet/config/apiserver.go

    	lw := cache.NewListWatchFromClient(c.CoreV1().RESTClient(), "pods", metav1.NamespaceAll, fields.OneTermEqualSelector("spec.nodeName", string(nodeName)))
    
    	// The Reflector responsible for watching pods at the apiserver should be run only after
    	// the node sync with the apiserver has completed.
    	klog.InfoS("Waiting for node sync before watching apiserver pods")
    	go func() {
    		for {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 21 19:46:27 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  2. pkg/scheduler/internal/cache/interface.go

    // Cache's operations are pod centric. It does incremental updates based on pod events.
    // Pod events are sent via network. We don't have guaranteed delivery of all events:
    // We use Reflector to list and watch from remote.
    // Reflector might be slow and do a relist, which would lead to missing events.
    //
    // State Machine of a pod's events in scheduler's cache:
    //
    //	+-------------------------------------------+  +----+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 05:26:32 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. pilot/pkg/util/informermetric/informerutil.go

    	handler, ok := handlers[clusterID]
    	mu.RUnlock()
    	if ok {
    		return handler
    	}
    
    	mu.Lock()
    	defer mu.Unlock()
    	clusterMetric := errorMetric.With(clusterLabel.Value(clusterID.String()))
    	h := func(_ *cache.Reflector, err error) {
    		clusterMetric.Increment()
    		log.Errorf("watch error in cluster %s: %v", clusterID, err)
    	}
    	handlers[clusterID] = h
    	return h
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/naming/from_stack.go

    	"strconv"
    	"strings"
    )
    
    // GetNameFromCallsite walks back through the call stack until we find a caller from outside of the ignoredPackages
    // it returns back a shortpath/filename:line to aid in identification of this reflector when it starts logging
    func GetNameFromCallsite(ignoredPackages ...string) string {
    	name := "????"
    	const maxStack = 10
    	for i := 1; i < maxStack; i++ {
    		_, file, line, ok := goruntime.Caller(i)
    		if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 12 01:31:42 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  5. pkg/volume/util/recyclerclient/recycler_client.go

    	DeletePod(name, namespace string) error
    	// WatchPod returns a ListWatch for watching a pod.  The stopChannel is used
    	// to close the reflector backing the watch.  The caller is responsible for
    	// derring a close on the channel to stop the reflector.
    	WatchPod(name, namespace string, stopChannel chan struct{}) (<-chan watch.Event, error)
    	// Event sends an event to the volume that is being recycled.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 8.5K bytes
    - Viewed (1)
  6. staging/src/k8s.io/cli-runtime/pkg/resource/selector.go

    	"k8s.io/apimachinery/pkg/watch"
    )
    
    // Selector is a Visitor for resources that match a label selector.
    type Selector struct {
    	Client        RESTClient
    	Mapping       *meta.RESTMapping
    	Namespace     string
    	LabelSelector string
    	FieldSelector string
    	LimitChunks   int64
    }
    
    // NewSelector creates a resource selector which hides details of getting items by their label selector.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 15:08:01 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  7. pkg/config/analysis/analyzers/telemetry/selector.go

    	// Using an index for selectoes is problematic because selector != label
    	// We can match a label to a selector, but we can't generate a selector from a label.
    	c.ForEach(gvk.Telemetry, func(rs *resource.Instance) bool {
    		s := rs.Message.(*v1alpha1.Telemetry)
    
    		// For this analysis, ignore Telemetries with no selectors specified at all.
    		if s.Selector == nil || len(s.GetSelector().MatchLabels) == 0 {
    			return true
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. pkg/config/analysis/analyzers/sidecar/selector.go

    	"istio.io/istio/pkg/config/analysis/msg"
    	"istio.io/istio/pkg/config/resource"
    	"istio.io/istio/pkg/config/schema/gvk"
    )
    
    // SelectorAnalyzer validates, per namespace, that:
    // * sidecar resources that define a workload selector match at least one pod
    // * there aren't multiple sidecar resources that select overlapping pods
    type SelectorAnalyzer struct{}
    
    var _ analysis.Analyzer = &SelectorAnalyzer{}
    
    // Metadata implements Analyzer
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/util/workloadinstances/selector.go

    )
    
    // ByServiceSelector returns a predicate that matches workload instances
    // of a given service.
    func ByServiceSelector(namespace string, selector labels.Instance) func(*model.WorkloadInstance) bool {
    	return func(wi *model.WorkloadInstance) bool {
    		return wi.Namespace == namespace && selector.Match(wi.Endpoint.Labels)
    	}
    }
    
    // FindAllInIndex returns a list of workload instances in the index
    // that match given predicate.
    //
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 07 04:26:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. pkg/config/analysis/analyzers/testdata/telemetry-selector.yaml

    kind: Telemetry
    metadata:
      name: dupe-1
      namespace: default
    spec:
      selector:
        matchLabels:
          app: reviews # Multiple telemetries have the same selector, should generate errors for both
      metrics:
        - providers:
            - name: prometheus
          overrides:
            - match:
                metric: ALL_METRICS
              disabled: false
    ---
    apiVersion: telemetry.istio.io/v1alpha1
    kind: Telemetry
    metadata:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 03 06:56:06 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top