Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 569 for stopCh (0.27 sec)

  1. pkg/util/iptables/monitor_test.go

    		t.Errorf("failed to create iptables canaries: %v", err)
    	}
    
    	// If we close the stop channel, it should stop running
    	close(stopCh)
    
    	if err := waitForNoReload(&reloads, 2); err != nil {
    		t.Errorf("got unexpected number of reloads after stop: %v", err)
    	}
    	if !ensureNoChains(mfe) {
    		t.Errorf("canaries still exist after stopping monitor")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:21:59 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/maxinflight.go

    		}
    	})
    }
    
    // StartMaxInFlightWatermarkMaintenance starts the goroutines to observe and maintain watermarks for max-in-flight
    // requests.
    func StartMaxInFlightWatermarkMaintenance(stopCh <-chan struct{}) {
    	startWatermarkMaintenance(watermark, stopCh)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 11:34:15 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  3. pkg/controlplane/controller/defaultservicecidr/default_servicecidr_controller.go

    	serviceCIDRsSynced  cache.InformerSynced
    
    	interval time.Duration
    }
    
    // Start will not return until the default ServiceCIDR exists or stopCh is closed.
    func (c *Controller) Start(ctx context.Context) {
    	defer utilruntime.HandleCrash()
    	stopCh := ctx.Done()
    
    	c.eventBroadcaster = record.NewBroadcaster(record.WithContext(ctx))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/hooks.go

    	LoopbackClientConfig *restclient.Config
    	// StopCh is the channel that will be closed when the server stops.
    	//
    	// Deprecated: use the PostStartHookContext itself instead, it contains a context that
    	// gets cancelled when the server stops. StopCh keeps getting provided for existing code.
    	StopCh <-chan struct{}
    	// Context gets cancelled when the server stops.
    	context.Context
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/watch/watch.go

    func (pw *ProxyWatcher) StopChan() <-chan struct{} {
    	return pw.stopCh
    }
    
    // MockWatcher implements watch.Interface with mockable functions.
    type MockWatcher struct {
    	StopFunc       func()
    	ResultChanFunc func() <-chan Event
    }
    
    var _ Interface = &MockWatcher{}
    
    // Stop calls StopFunc
    func (mw MockWatcher) Stop() {
    	mw.StopFunc()
    }
    
    // ResultChan calls ResultChanFunc
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 20:06:22 UTC 2024
    - 8.1K bytes
    - Viewed (1)
  6. pkg/kubelet/cloudresource/cloud_request_manager_test.go

    		// Set the request delay so the manager timeouts and collects the node addresses later
    		RequestDelay: 200 * time.Millisecond,
    	}
    	stopCh := make(chan struct{})
    	defer close(stopCh)
    
    	manager := NewSyncManager(cloud, "defaultNode", syncPeriod).(*cloudResourceSyncManager)
    	go manager.Run(stopCh)
    
    	nodeAddresses, err := manager.NodeAddresses()
    	if err != nil {
    		t.Errorf("Unexpected err: %q\n", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/kube/controller/autoserviceexportcontroller.go

    	c.services.AddEventHandler(controllers.EventHandler[controllers.Object]{AddFunc: c.queue.AddObject})
    
    	return c
    }
    
    func (c *autoServiceExportController) Run(stopCh <-chan struct{}) {
    	kube.WaitForCacheSync("auto service export", stopCh, c.services.HasSynced)
    	c.queue.Run(stopCh)
    	c.services.ShutdownHandlers()
    }
    
    func (c *autoServiceExportController) logPrefix() string {
    	return "AutoServiceExport (cluster=" + c.ClusterID.String() + ") "
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. pkg/scheduler/internal/cache/debugger/debugger.go

    func (d *CacheDebugger) ListenForSignal(ctx context.Context) {
    	logger := klog.FromContext(ctx)
    	stopCh := ctx.Done()
    	ch := make(chan os.Signal, 1)
    	signal.Notify(ch, compareSignal)
    
    	go func() {
    		for {
    			select {
    			case <-stopCh:
    				return
    			case <-ch:
    				d.Comparer.Compare(logger)
    				d.Dumper.DumpAll(logger)
    			}
    		}
    	}()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 05:26:32 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. pkg/kubelet/pluginmanager/reconciler/reconciler.go

    	handlers            map[string]cache.PluginHandler
    	sync.RWMutex
    }
    
    var _ Reconciler = &reconciler{}
    
    func (rc *reconciler) Run(stopCh <-chan struct{}) {
    	wait.Until(func() {
    		rc.reconcile()
    	},
    		rc.loopSleepDuration,
    		stopCh)
    }
    
    func (rc *reconciler) AddHandler(pluginType string, pluginHandler cache.PluginHandler) {
    	rc.Lock()
    	defer rc.Unlock()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 6.2K bytes
    - Viewed (0)
  10. pkg/util/concurrent/debouncer.go

    // limitations under the License.
    
    package concurrent
    
    import (
    	"time"
    
    	"istio.io/istio/pkg/util/sets"
    )
    
    type Debouncer[T comparable] struct{}
    
    func (d *Debouncer[T]) Run(ch chan T, stopCh <-chan struct{}, debounceMinInterval, debounceMaxInterval time.Duration, pushFn func(sets.Set[T])) {
    	var timeChan <-chan time.Time
    	var startDebounce time.Time
    	var lastConfigUpdateTime time.Time
    
    	pushCounter := 0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 01 13:44:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top