Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 49 for NewSharedInformerFactory (0.31 sec)

  1. pkg/registry/core/service/ipallocator/controller/repairip_test.go

    	ipAddressStore   cache.Store
    	serviceCIDRStore cache.Store
    }
    
    func newFakeRepair() (*fake.Clientset, *fakeRepair) {
    	fakeClient := fake.NewSimpleClientset()
    
    	informerFactory := informers.NewSharedInformerFactory(fakeClient, 0*time.Second)
    	serviceInformer := informerFactory.Core().V1().Services()
    	serviceIndexer := serviceInformer.Informer().GetIndexer()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  2. pkg/scheduler/scheduler.go

    // in-place podInformer.
    func NewInformerFactory(cs clientset.Interface, resyncPeriod time.Duration) informers.SharedInformerFactory {
    	informerFactory := informers.NewSharedInformerFactory(cs, resyncPeriod)
    	informerFactory.InformerFor(&v1.Pod{}, newPodInformer)
    	return informerFactory
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_test.go

    				ObjectMeta: meta.ObjectMeta{
    					Name: "fakeNode",
    				},
    				Spec: api.NodeSpec{},
    			})
    
    			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 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  4. pkg/controller/resourceclaim/controller_test.go

    					return true, nil, apierrors.NewConflict(action.GetResource().GroupResource(), "fake name", errors.New("fake conflict"))
    				})
    			}
    			setupMetrics()
    			informerFactory := informers.NewSharedInformerFactory(fakeKubeClient, controller.NoResyncPeriodFunc())
    			podInformer := informerFactory.Core().V1().Pods()
    			podSchedulingInformer := informerFactory.Resource().V1alpha2().PodSchedulingContexts()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 08:56:16 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  5. pkg/kube/client.go

    		clusterID:              "fake",
    	}
    	c.kube = fake.NewSimpleClientset(objects...)
    
    	c.config = &rest.Config{
    		Host: "server",
    	}
    
    	c.informerFactory = informerfactory.NewSharedInformerFactory()
    	s := FakeIstioScheme
    
    	c.metadata = metadatafake.NewSimpleMetadataClient(s)
    	c.dynamic = dynamicfake.NewSimpleDynamicClient(s)
    	c.istio = istiofake.NewSimpleClientset()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 39K bytes
    - Viewed (0)
  6. pkg/scheduler/eventhandlers_test.go

    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			logger, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    
    			informerFactory := informers.NewSharedInformerFactory(fake.NewSimpleClientset(), 0)
    			schedulingQueue := queue.NewTestQueueWithInformerFactory(ctx, nil, informerFactory)
    			testSched := Scheduler{
    				StopEverything:  ctx.Done(),
    				SchedulingQueue: schedulingQueue,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 10 14:38:54 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  7. pkg/controlplane/instance_test.go

    	if err != nil {
    		t.Fatalf("unable to create client set due to %v", err)
    	}
    	config.ControlPlane.VersionedInformers = informers.NewSharedInformerFactory(clientset, config.ControlPlane.Generic.LoopbackClientConfig.Timeout)
    
    	return server, *config, assert.New(t)
    }
    
    type fakeLocalhost443Listener struct{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:50:04 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  8. pkg/registry/core/service/ipallocator/ipallocator_test.go

    	api "k8s.io/kubernetes/pkg/apis/core"
    	netutils "k8s.io/utils/net"
    )
    
    func newTestAllocator(cidr *net.IPNet) (*Allocator, error) {
    	client := fake.NewSimpleClientset()
    
    	informerFactory := informers.NewSharedInformerFactory(client, 0*time.Second)
    	ipInformer := informerFactory.Networking().V1alpha1().IPAddresses()
    	ipStore := ipInformer.Informer().GetIndexer()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jun 25 13:14:46 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go

    	config.OpenAPIV3Config = DefaultOpenAPIV3Config(testGetOpenAPIDefinitions, openapinamer.NewDefinitionNamer(runtime.NewScheme()))
    	config.OpenAPIV3Config.Info.Version = "unversioned"
    	sharedInformers := informers.NewSharedInformerFactory(clientset, config.LoopbackClientConfig.Timeout)
    	config.Complete(sharedInformers)
    
    	return *config, assert.New(t)
    }
    
    func newMaster(t *testing.T) (*GenericAPIServer, Config, *assert.Assertions) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go

    		t.Run(item.name, func(t *testing.T) {
    			_, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    			client := fake.NewSimpleClientset()
    			informerFactory := informers.NewSharedInformerFactory(client, 0)
    			opts := []runtime.Option{
    				runtime.WithClientSet(client),
    				runtime.WithInformerFactory(informerFactory),
    			}
    			fh, err := runtime.NewFramework(ctx, nil, nil, opts...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 32K bytes
    - Viewed (0)
Back to top