Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,432 for stopCh (0.13 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go

    type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer
    
    // SharedInformerFactory a small interface to allow for adding an informer without an import cycle
    type SharedInformerFactory interface {
    	Start(stopCh <-chan struct{})
    	InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer
    }
    
    // TweakListOptionsFunc is a function that transforms a v1.ListOptions.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 16 22:25:28 UTC 2018
    - 1.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    // always return ErrWaitTimeout.
    func Test_waitForWithEarlyClosing_waitFunc(t *testing.T) {
    	stopCh := make(chan struct{})
    	defer close(stopCh)
    
    	ctx := ContextForChannel(stopCh)
    	start := time.Now()
    	err := waitForWithContext(ctx, func(ctx context.Context) <-chan struct{} {
    		c := make(chan struct{})
    		close(c)
    		return c
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  3. pkg/controller/serviceaccount/serviceaccounts_controller_test.go

    			err := controller.syncNamespace(ctx, key)
    			if err != nil {
    				t.Logf("%s: %v", k, err)
    			}
    
    			syncCalls <- struct{}{}
    			return err
    		}
    		stopCh := make(chan struct{})
    		defer close(stopCh)
    		go controller.Run(context.TODO(), 1)
    
    		if tc.ExistingNamespace != nil {
    			nsStore.Add(tc.ExistingNamespace)
    		}
    		for _, s := range tc.ExistingServiceAccounts {
    			saStore.Add(s)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 03 00:46:06 UTC 2021
    - 7.6K bytes
    - Viewed (0)
  4. pkg/registry/core/service/ipallocator/controller/repairip.go

    	// serialize the operations on ServiceCIDRs
    	go wait.Until(r.cidrWorker, r.workerLoopPeriod, stopCh)
    
    	for i := 0; i < workers; i++ {
    		go wait.Until(r.ipWorker, r.workerLoopPeriod, stopCh)
    		go wait.Until(r.svcWorker, r.workerLoopPeriod, stopCh)
    	}
    
    	<-stopCh
    }
    
    // runOnce verifies the state of the ClusterIP allocations and returns an error if an unrecoverable problem occurs.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/peerproxy/peerproxy.go

    )
    
    // Interface defines how the Unknown Version Proxy filter interacts with the underlying system.
    type Interface interface {
    	WrapHandler(handler http.Handler) http.Handler
    	WaitForCacheSync(stopCh <-chan struct{}) error
    	HasFinishedSync() bool
    }
    
    // New creates a new instance to implement unknown version proxy
    func NewPeerProxyHandler(informerFactory kubeinformers.SharedInformerFactory,
    	svm storageversion.Manager,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 19 00:36:22 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. plugin/pkg/admission/podtolerationrestriction/admission_test.go

    			handler, informerFactory, err := newHandlerForTest(mockClient)
    			if err != nil {
    				t.Fatalf("unexpected error initializing handler: %v", err)
    			}
    			stopCh := make(chan struct{})
    			defer close(stopCh)
    			informerFactory.Start(stopCh)
    
    			handler.pluginConfig = &pluginapi.Configuration{Default: test.defaultClusterTolerations, Whitelist: test.clusterWhitelist}
    			pod := test.pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	cacher.reflector = reflector
    
    	go cacher.dispatchEvents()
    	go progressRequester.Run(stopCh)
    
    	cacher.stopWg.Add(1)
    	go func() {
    		defer cacher.stopWg.Done()
    		defer cacher.terminateAllWatchers()
    		wait.Until(
    			func() {
    				if !cacher.isStopped() {
    					cacher.startCaching(stopCh)
    				}
    			}, time.Second, stopCh,
    		)
    	}()
    
    	return cacher, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/controller_test.go

    	stopCh := make(chan struct{})
    
    	env.runFunc = func() {
    		go c.Run(&spec.Swagger{
    			SwaggerProps: spec.SwaggerProps{
    				Paths: &spec.Paths{
    					Paths: map[string]spec.PathItem{
    						"/apis/apiextensions.k8s.io/v1": {},
    					},
    				},
    			},
    		}, h, stopCh)
    	}
    
    	env.cleanFunc = func() {
    		cancel()
    		close(stopCh)
    	}
    	return env, ctx
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 22 17:10:53 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  9. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_test.go

    	}
    }
    
    func newWatcher(t *testing.T, socketDir string, desiredStateOfWorldCache cache.DesiredStateOfWorld, stopCh <-chan struct{}) *Watcher {
    	w := NewWatcher(socketDir, desiredStateOfWorldCache)
    	require.NoError(t, w.Start(stopCh))
    
    	return w
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 8K bytes
    - Viewed (0)
  10. pkg/kube/kclient/client.go

    	}
    	return cast
    }
    
    func (n *informerClient[T]) applyFilter(t T) bool {
    	if n.filter == nil {
    		return true
    	}
    	return n.filter(t)
    }
    
    func (n *informerClient[T]) Start(stopCh <-chan struct{}) {
    	n.startInformer(stopCh)
    }
    
    func (n *writeClient[T]) Create(object T) (T, error) {
    	api := kubeclient.GetWriteClient[T](n.client, object.GetNamespace())
    	return api.Create(context.Background(), object, metav1.CreateOptions{})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 07:14:28 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top