Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 46 for Informer (0.14 sec)

  1. pkg/controller/endpointslice/endpointslice_controller_test.go

    	return client, &endpointSliceController{
    		esController,
    		informerFactory.Discovery().V1().EndpointSlices().Informer().GetStore(),
    		informerFactory.Core().V1().Nodes().Informer().GetStore(),
    		informerFactory.Core().V1().Pods().Informer().GetStore(),
    		informerFactory.Core().V1().Services().Informer().GetStore(),
    	}
    }
    
    func newPod(n int, namespace string, ready bool, nPorts int, terminating bool) *v1.Pod {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller.go

    			jm.deleteJob(logger, obj)
    		},
    	}); err != nil {
    		return nil, fmt.Errorf("adding Job event handler: %w", err)
    	}
    	jm.jobLister = jobInformer.Lister()
    	jm.jobStoreSynced = jobInformer.Informer().HasSynced
    
    	if _, err := podInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
    		AddFunc: func(obj interface{}) {
    			jm.addPod(logger, obj)
    		},
    		UpdateFunc: func(oldObj, newObj interface{}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go

    	return clusterEventWithHint
    }
    
    // isSchedulableAfterNodeChange is invoked for all node events reported by
    // an informer. It checks whether that change made a previously unschedulable
    // pod schedulable.
    func (pl *TaintToleration) isSchedulableAfterNodeChange(logger klog.Logger, pod *v1.Pod, oldObj, newObj interface{}) (framework.QueueingHint, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. pkg/kube/kclient/client_test.go

    	namespaces.AddEventHandler(clienttest.TrackerHandler(tracker))
    	// This is not great! But seems the best we can do.
    	// For namespaces specifically we have an interesting race.
    	// We will have 2+ informer handlers: the filter itself, and N controllers.
    	// The ordering of handlers if random. If the filter receives the event first, it could suppress re-sending the namespace event,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 15:12:54 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet.go

    		kubeInformers := informers.NewSharedInformerFactoryWithOptions(kubeDeps.KubeClient, 0, informers.WithTweakListOptions(func(options *metav1.ListOptions) {
    			options.FieldSelector = fields.Set{metav1.ObjectNameField: string(nodeName)}.String()
    		}))
    		nodeLister = kubeInformers.Core().V1().Nodes().Lister()
    		nodeHasSynced = func() bool {
    			return kubeInformers.Core().V1().Nodes().Informer().HasSynced()
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/volume_manager.go

    }
    
    func (vm *volumeManager) Run(sourcesReady config.SourcesReady, stopCh <-chan struct{}) {
    	defer runtime.HandleCrash()
    
    	if vm.kubeClient != nil {
    		// start informer for CSIDriver
    		go vm.volumePluginMgr.Run(stopCh)
    	}
    
    	go vm.desiredStateOfWorldPopulator.Run(sourcesReady, stopCh)
    	klog.V(2).InfoS("The desired_state_of_world populator starts")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  7. pkg/scheduler/schedule_one.go

    		logger.Error(err, "Error scheduling pod; retrying", "pod", klog.KObj(pod))
    	}
    
    	// Check if the Pod exists in informer cache.
    	podLister := fwk.SharedInformerFactory().Core().V1().Pods().Lister()
    	cachedPod, e := podLister.Pods(pod.Namespace).Get(pod.Name)
    	if e != nil {
    		logger.Info("Pod doesn't exist in informer cache", "pod", klog.KObj(pod), "err", e)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:28:08 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  8. CHANGELOG/CHANGELOG-1.31.md

    - Fix a race condition in transforming informer happening when objects were accessed during Resync operation ([#124344](https://github.com/ku...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 20:34:14 UTC 2024
    - 60.3K bytes
    - Viewed (0)
  9. pkg/scheduler/internal/queue/scheduling_queue_test.go

    			informerFactory.Start(ctx.Done())
    			informerFactory.WaitForCacheSync(ctx.Done())
    
    			if tt.deletePod {
    				// Simulate that the test pod gets deleted physically.
    				informerFactory.Core().V1().Pods().Informer().GetStore().Delete(tt.podInfo.Pod)
    			}
    
    			q.AddNominatedPod(logger, tt.podInfo, nil)
    
    			if got := len(q.NominatedPodsForNode(tt.podInfo.Pod.Status.NominatedNodeName)) == 1; got != tt.want {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    }
    
    func (c *Cacher) dispatchEvents() {
    	// Jitter to help level out any aggregate load.
    	bookmarkTimer := c.clock.NewTimer(wait.Jitter(time.Second, 0.25))
    	defer bookmarkTimer.Stop()
    
    	// The internal informer populates the RV as soon as it conducts
    	// The first successful sync with the underlying store.
    	// The cache must wait until this first sync is completed to be deemed ready.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top