Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,258 for stopCh (0.92 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go

    			wh.SetAuthenticationInfoResolverWrapper(webhooktesting.Wrapper(webhooktesting.NewAuthenticationInfoResolver(new(int32))))
    			wh.SetServiceResolver(webhooktesting.NewServiceResolver(*serverURL))
    			wh.SetExternalKubeClientSet(client)
    			wh.SetExternalKubeInformerFactory(informer)
    
    			informer.Start(stopCh)
    			informer.WaitForCacheSync(stopCh)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. pkg/kube/informerfactory/factory.go

    	Informer cache.SharedIndexInformer
    	start    func(stopCh <-chan struct{})
    }
    
    func (s StartableInformer) Start(stopCh <-chan struct{}) {
    	s.start(stopCh)
    }
    
    // InformerFactory provides access to a shared informer factory
    type InformerFactory interface {
    	// Start initializes all requested informers. They are handled in goroutines
    	// which run until the stop channel gets closed.
    	Start(stopCh <-chan struct{})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. pkg/proxy/config/api_test.go

    	stopCh := make(chan struct{})
    	defer close(stopCh)
    
    	handler := NewServiceHandlerMock()
    
    	sharedInformers := informers.NewSharedInformerFactory(client, time.Minute)
    
    	serviceConfig := NewServiceConfig(ctx, sharedInformers.Core().V1().Services(), time.Minute)
    	serviceConfig.RegisterEventHandler(handler)
    	go sharedInformers.Start(stopCh)
    	go serviceConfig.Run(stopCh)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. pkg/proxy/config/config_test.go

    	stopCh := make(chan struct{})
    	defer close(stopCh)
    
    	sharedInformers := informers.NewSharedInformerFactory(client, time.Minute)
    
    	config := NewServiceConfig(ctx, sharedInformers.Core().V1().Services(), time.Minute)
    	handler := NewServiceHandlerMock()
    	config.RegisterEventHandler(handler)
    	go sharedInformers.Start(stopCh)
    	go config.Run(stopCh)
    
    	service := &v1.Service{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/plugin_test.go

    			wh.SetAuthenticationInfoResolverWrapper(webhooktesting.Wrapper(webhooktesting.NewAuthenticationInfoResolver(new(int32))))
    			wh.SetServiceResolver(webhooktesting.NewServiceResolver(*serverURL))
    			wh.SetExternalKubeClientSet(client)
    			wh.SetExternalKubeInformerFactory(informer)
    
    			informer.Start(stopCh)
    			informer.WaitForCacheSync(stopCh)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/volume_manager_test.go

    			manager := newTestVolumeManager(t, tmpDir, podManager, kubeClient, node)
    
    			stopCh := runVolumeManager(manager)
    			defer close(stopCh)
    
    			podManager.SetPods([]*v1.Pod{pod})
    
    			// Fake node status update
    			go simulateVolumeInUseUpdate(
    				v1.UniqueVolumeName(node.Status.VolumesAttached[0].Name),
    				stopCh,
    				manager)
    
    			err = manager.WaitForAttachAndMount(context.Background(), pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/apiserver.go

    		go nonStructuralSchemaController.Run(5, context.StopCh)
    		go apiApprovalController.Run(5, context.StopCh)
    		go finalizingController.Run(5, context.StopCh)
    
    		discoverySyncedCh := make(chan struct{})
    		go discoveryController.Run(context.StopCh, discoverySyncedCh)
    		select {
    		case <-context.StopCh:
    		case <-discoverySyncedCh:
    		}
    
    		return nil
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 14:31:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  8. pkg/kube/portforwarder.go

    }
    
    func (f *forwarder) Close() {
    	close(f.stopCh)
    	// Closing the stop channel should close anything
    	// opened by f.forwarder.ForwardPorts()
    }
    
    func (f *forwarder) ErrChan() <-chan error {
    	return f.errCh
    }
    
    func (f *forwarder) WaitForStop() {
    	<-f.stopCh
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 02:12:37 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go

    	return channelContext{stopCh: parentCh}
    }
    
    var _ context.Context = channelContext{}
    
    // channelContext will behave as if the context were cancelled when stopCh is
    // closed.
    type channelContext struct {
    	stopCh <-chan struct{}
    }
    
    func (c channelContext) Done() <-chan struct{} { return c.stopCh }
    func (c channelContext) Err() error {
    	select {
    	case <-c.stopCh:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet_volumes_test.go

    						RBDImage: "fake-device",
    					},
    				},
    			},
    		},
    	})
    
    	stopCh := runVolumeManager(kubelet)
    	defer close(stopCh)
    
    	kubelet.podManager.SetPods([]*v1.Pod{pod})
    
    	// Fake node status update
    	go simulateVolumeInUseUpdate(
    		v1.UniqueVolumeName("fake/fake-device"),
    		stopCh,
    		kubelet.volumeManager)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 17 16:53:28 UTC 2023
    - 20.4K bytes
    - Viewed (0)
Back to top