Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 218 for Informer (0.17 sec)

  1. plugin/pkg/admission/runtimeclass/admission_test.go

    	runtimeClass := NewRuntimeClass()
    
    	if addLister {
    		informerFactory := informers.NewSharedInformerFactory(nil, controller.NoResyncPeriodFunc())
    		runtimeClass.SetExternalKubeInformerFactory(informerFactory)
    		if listerObject != nil {
    			informerFactory.Node().V1().RuntimeClasses().Informer().GetStore().Add(listerObject)
    		}
    	}
    
    	if addClient {
    		var client kubernetes.Interface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 17 01:30:14 UTC 2022
    - 17.5K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/preemption/preemption.go

    	logger := klog.FromContext(ctx)
    
    	// 0) Fetch the latest version of <pod>.
    	// It's safe to directly fetch pod here. Because the informer cache has already been
    	// initialized when creating the Scheduler obj.
    	// However, tests may need to manually initialize the shared pod informer.
    	podNamespace, podName := pod.Namespace, pod.Name
    	pod, err := ev.PodLister.Pods(pod.Namespace).Get(pod.Name)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/pod.go

    		return nil
    	}
    	res := make([]*v1.Pod, 0, len(keys))
    	for _, key := range keys {
    		p := pc.getPodByKey(key)
    		// Subtle race condition. getPodKeys is our cache over pods, while getPodByKey hits the informer cache.
    		// if these are out of sync, p may be nil (pod was deleted).
    		if p != nil {
    			res = append(res, p)
    		}
    	}
    	return res
    }
    
    // getPodByKey returns the pod by key
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_block_test.go

    	if err != nil {
    		t.Fatalf("Failed to create a fakeDriver: %v", err)
    	}
    
    	// after the driver is created, create the plugin. newTestPlugin waits for the informer to sync,
    	// such that csiMapper.SetUpDevice below sees the VolumeAttachment object in the lister.
    
    	plug, tmpDir := newTestPlugin(t, fakeClient)
    	defer os.RemoveAll(tmpDir)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  5. plugin/pkg/admission/serviceaccount/admission.go

    	s.client = cl
    }
    
    // SetExternalKubeInformerFactory registers informers with the plugin
    func (s *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory) {
    	serviceAccountInformer := f.Core().V1().ServiceAccounts()
    	s.serviceAccountLister = serviceAccountInformer.Lister()
    	s.SetReadyFunc(func() bool {
    		return serviceAccountInformer.Informer().HasSynced()
    	})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. cmd/kube-proxy/app/server.go

    	// function must configure its shared informer event handlers first.
    	informerFactory.Start(wait.NeverStop)
    
    	// Make an informer that selects for our nodename.
    	currentNodeInformerFactory := informers.NewSharedInformerFactoryWithOptions(s.Client, s.Config.ConfigSyncPeriod.Duration,
    		informers.WithTweakListOptions(func(options *metav1.ListOptions) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  7. 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)
  8. pkg/volume/csi/csi_test.go

    			})
    
    			client := fakeclient.NewSimpleClientset(objs...)
    
    			factory := informers.NewSharedInformerFactory(client, time.Hour /* disable resync */)
    			csiDriverInformer := factory.Storage().V1().CSIDrivers()
    			volumeAttachmentInformer := factory.Storage().V1().VolumeAttachments()
    			if driverInfo != nil {
    				csiDriverInformer.Informer().GetStore().Add(driverInfo)
    			}
    
    			factory.Start(wait.NeverStop)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/network.go

    	"istio.io/istio/pkg/slices"
    )
    
    type networkManager struct {
    	sync.RWMutex
    	// CIDR ranger based on path-compressed prefix trie
    	ranger    cidranger.Ranger
    	clusterID cluster.ID
    
    	gatewayResourceClient kclient.Informer[*v1beta1.Gateway]
    	meshNetworksWatcher   mesh.NetworksWatcher
    
    	// Network name for to be used when the meshNetworks fromRegistry nor network label on pod is specified
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 22:23:22 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/nodevolumelimits/non_csi.go

    var _ framework.EnqueueExtensions = &nonCSILimits{}
    
    // newNonCSILimitsWithInformerFactory returns a plugin with filter name and informer factory.
    func newNonCSILimitsWithInformerFactory(
    	ctx context.Context,
    	filterName string,
    	informerFactory informers.SharedInformerFactory,
    	fts feature.Features,
    ) framework.Plugin {
    	pvLister := informerFactory.Core().V1().PersistentVolumes().Lister()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 30 23:00:56 UTC 2023
    - 19.6K bytes
    - Viewed (0)
Back to top