Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 569 for stopCh (0.16 sec)

  1. pkg/controlplane/controller/systemnamespaces/system_namespaces_controller.go

    		interval:         interval,
    	}
    }
    
    // Run starts one worker.
    func (c *Controller) Run(stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer klog.Infof("Shutting down system namespaces controller")
    
    	klog.Infof("Starting system namespaces controller")
    
    	if !cache.WaitForCacheSync(stopCh, c.namespaceSynced) {
    		utilruntime.HandleError(fmt.Errorf("timed out waiting for caches to sync"))
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. pkg/revisions/tag_watcher.go

    			}
    			return []string{rev}
    		}, controllers.ObjectHandler(p.queue.AddObject))
    	return p
    }
    
    func (p *tagWatcher) Run(stopCh <-chan struct{}) {
    	if !kube.WaitForCacheSync("tag watcher", stopCh, p.webhooks.HasSynced) {
    		return
    	}
    	// Notify handlers of initial state
    	p.notifyHandlers()
    	p.queue.Run(stopCh)
    }
    
    // AddHandler registers a new handler for updates to tag changes.
    func (p *tagWatcher) AddHandler(handler TagHandler) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. pkg/revisions/default_watcher.go

    	p.webhooks.AddEventHandler(controllers.FilteredObjectHandler(p.queue.AddObject, isDefaultTagWebhook))
    
    	return p
    }
    
    func (p *defaultWatcher) Run(stopCh <-chan struct{}) {
    	kube.WaitForCacheSync("default revision", stopCh, p.webhooks.HasSynced)
    	p.queue.Run(stopCh)
    }
    
    // GetDefault returns the current default revision.
    func (p *defaultWatcher) GetDefault() string {
    	p.mu.RLock()
    	defer p.mu.RUnlock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 09 02:22:47 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/factory.go

    func CreateHealthCheck(c storagebackend.Config, stopCh <-chan struct{}) (func() error, error) {
    	switch c.Type {
    	case storagebackend.StorageTypeETCD2:
    		return nil, fmt.Errorf("%s is no longer a supported storage backend", c.Type)
    	case storagebackend.StorageTypeUnset, storagebackend.StorageTypeETCD3:
    		return newETCD3HealthCheck(c, stopCh)
    	default:
    		return nil, fmt.Errorf("unknown storage type: %s", c.Type)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_progress_test.go

    	_, ctx := ktesting.NewTestContext(t)
    	logger := klog.FromContext(ctx)
    
    	clock := testingclock.NewFakeClock(time.Now())
    	pr := newTestConditionalProgressRequester(clock)
    	stopCh := make(chan struct{})
    	go pr.Run(stopCh)
    	var wantRequestsSent int32
    	var requestsSent int32
    
    	logger.Info("Wait for ticker to be created")
    	for !clock.HasWaiters() {
    		time.Sleep(pollPeriod)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 11:51:06 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/routes/debugsocket.go

    	s.mux.HandleFunc("/debug/flags/", f.Index)
    
    	url := path.Join("/debug/flags", flag)
    	s.mux.HandleFunc(url, handler)
    
    	f.addFlag(flag)
    }
    
    // Run starts the server and waits for stopCh to be closed to close the server.
    func (s *DebugSocket) Run(stopCh <-chan struct{}) error {
    	if err := os.Remove(s.path); err != nil && !os.IsNotExist(err) {
    		return fmt.Errorf("failed to remove (%v): %v", s.path, err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 08 00:33:16 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  7. pkg/kubelet/volumemanager/reconciler/reconciler.go

    */
    
    package reconciler
    
    import (
    	"k8s.io/apimachinery/pkg/util/wait"
    	"k8s.io/klog/v2"
    )
    
    func (rc *reconciler) Run(stopCh <-chan struct{}) {
    	rc.reconstructVolumes()
    	klog.InfoS("Reconciler: start to sync state")
    	wait.Until(rc.reconcile, rc.loopSleepDuration, stopCh)
    }
    
    func (rc *reconciler) reconcile() {
    	readyToUnmount := rc.readyToUnmount()
    	if readyToUnmount {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/informers/externalversions/factory.go

    				defer f.wg.Done()
    				informer.Run(stopCh)
    			}()
    			f.startedInformers[informerType] = true
    		}
    	}
    }
    
    func (f *sharedInformerFactory) Shutdown() {
    	f.lock.Lock()
    	f.shuttingDown = true
    	f.lock.Unlock()
    
    	// Will return immediately if there is nothing to wait for.
    	f.wg.Wait()
    }
    
    func (f *sharedInformerFactory) WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 18:31:26 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/client/informers/externalversions/factory.go

    				defer f.wg.Done()
    				informer.Run(stopCh)
    			}()
    			f.startedInformers[informerType] = true
    		}
    	}
    }
    
    func (f *sharedInformerFactory) Shutdown() {
    	f.lock.Lock()
    	f.shuttingDown = true
    	f.lock.Unlock()
    
    	// Will return immediately if there is nothing to wait for.
    	f.wg.Wait()
    }
    
    func (f *sharedInformerFactory) WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 18:31:26 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. pkg/test/framework/components/echo/kube/pod_controller.go

    	}
    }
    
    func (c *podController) Run(stop <-chan struct{}) {
    	go c.informer.Run(stop)
    	kube.WaitForCacheSync("pod controller", stop, c.informer.HasSynced)
    	c.q.Run(stop)
    }
    
    func (c *podController) HasSynced() bool {
    	return c.q.HasSynced()
    }
    
    func (c *podController) WaitForSync(stopCh <-chan struct{}) bool {
    	return cache.WaitForNamedCacheSync("echo", stopCh, c.informer.HasSynced)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 09 02:22:47 UTC 2023
    - 2.6K bytes
    - Viewed (1)
Back to top