- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,249 for stopCh (0.11 sec)
-
pkg/kubelet/util/manager/watch_based_manager.go
// lock is to ensure the access and modify of lastAccessTime, stopped, and immutable are thread safety, // and protecting from closing stopCh multiple times. lock sync.Mutex lastAccessTime time.Time stopped bool immutable bool stopCh chan struct{} } func (i *objectCacheItem) stop() bool { i.lock.Lock() defer i.lock.Unlock() return i.stopThreadUnsafe() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 11.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease.go
} }, c.endpointInterval, stopCh) } // Stop cleans up this apiserver's peer endpoint leases. func (c *PeerEndpointLeaseController) Stop() { c.lock.Lock() defer c.lock.Unlock() select { case <-c.stopCh: return // only close once default: close(c.stopCh) } finishedReconciling := make(chan struct{}) go func() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 24 09:23:05 UTC 2023 - 12.3K bytes - Viewed (0) -
pilot/pkg/xds/discovery_test.go
wg.Wait() c <- struct{}{} }() select { case <-c: return true case <-time.After(timeout): return false } } func TestSendPushesManyPushes(t *testing.T) { stopCh := make(chan struct{}) defer close(stopCh) semaphore := make(chan struct{}, 2) queue := NewPushQueue() defer queue.ShutDown() proxies := createProxies(5) pushes := make(map[string]int) pushesMu := &sync.Mutex{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 00:26:45 UTC 2024 - 9.2K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/namespacecontroller.go
})) return c } // Run starts the NamespaceController until a value is sent to stopCh. func (nc *NamespaceController) Run(stopCh <-chan struct{}) { if !kube.WaitForCacheSync("namespace controller", stopCh, nc.namespaces.HasSynced, nc.configmaps.HasSynced) { return } go nc.startCaBundleWatcher(stopCh) nc.queue.Run(stopCh) controllers.ShutdownAll(nc.configmaps, nc.namespaces) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 5.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/secure_serving.go
s.Cert.AddListener(dynamicCertificateController) } // generate a context from stopCh. This is to avoid modifying files which are relying on apiserver // TODO: See if we can pass ctx to the current method ctx, cancel := context.WithCancel(context.Background()) go func() { select { case <-stopCh: cancel() // stopCh closed, so cancel our context case <-ctx.Done(): } }()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 12 20:54:07 UTC 2023 - 10.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer.go
authz authorizer.Authorizer, featureGates featuregate.FeatureGate, stopCh <-chan struct{}, restMapper meta.RESTMapper, ) pluginInitializer { return pluginInitializer{ externalClient: extClientset, dynamicClient: dynamicClient, externalInformers: extInformers, authorizer: authz, featureGates: featureGates, stopCh: stopCh, restMapper: restMapper, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/establish/establishing_controller.go
} // Run starts the EstablishingController. func (ec *EstablishingController) Run(stopCh <-chan struct{}) { defer utilruntime.HandleCrash() defer ec.queue.ShutDown() klog.Info("Starting EstablishingController") defer klog.Info("Shutting down EstablishingController") if !cache.WaitForCacheSync(stopCh, ec.crdSynced) { return } // only start one worker thread since its a slow moving API
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/backoff.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 19:14:11 UTC 2023 - 16.5K bytes - Viewed (0) -
pkg/scheduler/metrics/metric_recorder.go
IsStoppedCh chan struct{} } func NewMetricsAsyncRecorder(bufferSize int, interval time.Duration, stopCh <-chan struct{}) *MetricAsyncRecorder { recorder := &MetricAsyncRecorder{ bufferCh: make(chan *metric, bufferSize), bufferSize: bufferSize, interval: interval, stopCh: stopCh, IsStoppedCh: make(chan struct{}), } go recorder.run() return recorder }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 16 07:27:08 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/kubelet/certificate/transport.go
// certificate. // // stopCh should be used to indicate when the transport is unused and doesn't need // to continue checking the manager. func UpdateTransport(stopCh <-chan struct{}, clientConfig *restclient.Config, clientCertificateManager certificate.Manager, exitAfter time.Duration) (func(), error) { return updateTransport(stopCh, 10*time.Second, clientConfig, clientCertificateManager, exitAfter) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Dec 08 13:57:45 UTC 2022 - 6.5K bytes - Viewed (0)