- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,038 for stopCh (0.11 sec)
-
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) -
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) -
pkg/registry/flowcontrol/rest/storage_flowcontrol.go
} err = func() error { // get a derived context that gets cancelled after 5m or // when the StopCh gets closed, whichever happens first. ctx, cancel := contextFromChannelAndMaxWaitDuration(hookContext.StopCh, 5*time.Minute) defer cancel() if !cache.WaitForCacheSync(ctx.Done(), bce.informersSynced...) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 12.3K bytes - Viewed (0) -
pkg/controller/garbagecollector/graph_builder.go
ignoredResources map[schema.GroupResource]struct{} } // monitor runs a Controller with a local stop channel. type monitor struct { controller cache.Controller store cache.Store // stopCh stops Controller. If stopCh is nil, the monitor is considered to be // not yet started. stopCh chan struct{} } // Run is intended to be called in a goroutine. Multiple calls of this is an // error.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 36.9K bytes - Viewed (0) -
pkg/kube/multicluster/secretcontroller_test.go
return t.component.clusters["config"] } func (t *testController) Run(stop chan struct{}) { assert.NoError(t.t, t.controller.Run(stop)) t.client.RunAndWait(stop) } func TestListRemoteClusters(t *testing.T) { stop := make(chan struct{}) c := buildTestController(t, false) c.AddSecret("s0", "c0") c.AddSecret("s1", "c1") c.Run(stop) // before sync
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 17.6K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
pkg/proxy/config/config.go
} // Run waits for cache synced and invokes handlers after syncing. func (c *EndpointSliceConfig) Run(stopCh <-chan struct{}) { c.logger.Info("Starting endpoint slice config controller") if !cache.WaitForNamedCacheSync("endpoint slice config", stopCh, c.listerSynced) { return } for _, h := range c.eventHandlers { c.logger.V(3).Info("Calling handler.OnEndpointSlicesSynced()")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 22 05:08:41 UTC 2024 - 15.1K bytes - Viewed (0)