Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 218 for Informer (0.15 sec)

  1. pkg/controller/volume/attachdetach/util/util.go

    		return volumeSpec, nil
    	}
    
    	// Do not return the original volume object, since it's from the shared
    	// informer it may be mutated by another consumer.
    	clonedPodVolume := podVolume.DeepCopy()
    
    	origspec := volume.NewSpecFromVolume(clonedPodVolume)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. pkg/controller/cronjob/cronjob_controllerv2.go

    		jobListerSynced:     jobInformer.Informer().HasSynced,
    		cronJobListerSynced: cronJobsInformer.Informer().HasSynced,
    		now:                 time.Now,
    	}
    
    	jobInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
    		AddFunc:    jm.addJob,
    		UpdateFunc: jm.updateJob,
    		DeleteFunc: jm.deleteJob,
    	})
    
    	cronJobsInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/controller.go

    // registerHandlers registers a handler for a given informer
    // Note: `otype` is used for metric, if empty, no metric will be reported
    func registerHandlers[T controllers.ComparableObject](c *Controller,
    	informer kclient.Informer[T], otype string,
    	handler func(T, T, model.Event) error, filter FilterOutFunc[T],
    ) {
    	wrappedHandler := func(prev, curr T, event model.Event) error {
    		curr = informer.Get(curr.GetName(), curr.GetNamespace())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  4. pkg/controlplane/controller/clusterauthenticationtrust/cluster_authentication_trust_controller.go

    func NewClusterAuthenticationTrustController(requiredAuthenticationData ClusterAuthenticationInfo, kubeClient kubernetes.Interface) *Controller {
    	// we construct our own informer because we need such a small subset of the information available.  Just one namespace.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. pkg/controller/deployment/sync_test.go

    		t.Logf("scenario %d", i)
    
    		_, ctx := ktesting.NewTestContext(t)
    
    		fake := &fake.Clientset{}
    		informers := informers.NewSharedInformerFactory(fake, controller.NoResyncPeriodFunc())
    		controller, err := NewDeploymentController(ctx, informers.Apps().V1().Deployments(), informers.Apps().V1().ReplicaSets(), informers.Core().V1().Pods(), fake)
    		if err != nil {
    			t.Fatalf("error creating Deployment controller: %v", err)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  6. pkg/kubelet/volume_host.go

    	// Initialize csiDriverLister before calling InitPlugins
    	var informerFactory informers.SharedInformerFactory
    	var csiDriverLister storagelisters.CSIDriverLister
    	var csiDriversSynced cache.InformerSynced
    	const resyncPeriod = 0
    	// Don't initialize if kubeClient is nil
    	if kubelet.kubeClient != nil {
    		informerFactory = informers.NewSharedInformerFactory(kubelet.kubeClient, resyncPeriod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. pkg/controller/garbagecollector/garbagecollector.go

    		return requeueItem
    	} else if !n.isObserved() {
    		// requeue if item hasn't been observed via an informer event yet.
    		// otherwise a virtual node for an item added AND removed during watch reestablishment can get stuck in the graph and never removed.
    		// see https://issue.k8s.io/56121
    		logger.V(5).Info("item hasn't been observed via informer yet", "item", n.identity)
    		return requeueItem
    	}
    
    	return forgetItem
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  8. pkg/controller/deployment/deployment_controller_test.go

    	c.podListerSynced = alwaysReady
    	for _, d := range f.dLister {
    		informers.Apps().V1().Deployments().Informer().GetIndexer().Add(d)
    	}
    	for _, rs := range f.rsLister {
    		informers.Apps().V1().ReplicaSets().Informer().GetIndexer().Add(rs)
    	}
    	for _, pod := range f.podLister {
    		informers.Core().V1().Pods().Informer().GetIndexer().Add(pod)
    	}
    	return c, informers, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/authentication/request/headerrequest/requestheader_controller.go

    			workqueue.DefaultTypedControllerRateLimiter[string](),
    			workqueue.TypedRateLimitingQueueConfig[string]{Name: "RequestHeaderAuthRequestController"},
    		),
    	}
    
    	// we construct our own informer because we need such a small subset of the information available.  Just one namespace.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/healthz/healthz.go

    // NewInformerSyncHealthz returns a new HealthChecker that will pass only if all informers in the given cacheSyncWaiter sync.
    func NewInformerSyncHealthz(cacheSyncWaiter cacheSyncWaiter) HealthChecker {
    	return &informerSync{
    		cacheSyncWaiter: cacheSyncWaiter,
    	}
    }
    
    func (i *informerSync) Name() string {
    	return "informer-sync"
    }
    
    type shutdown struct {
    	stopCh <-chan struct{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top