- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 1,432 for stopCh (0.2 sec)
-
staging/src/k8s.io/apiserver/plugin/pkg/audit/truncate/truncate.go
newEvent.Annotations = make(map[string]string) } newEvent.Annotations[annotationKey] = annotationValue return newEvent } func (b *backend) Run(stopCh <-chan struct{}) error { return b.delegateBackend.Run(stopCh) } func (b *backend) Shutdown() { b.delegateBackend.Shutdown() } func (b *backend) calcSize(e *auditinternal.Event) (int64, error) { s := &sizer{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 29 00:03:53 UTC 2022 - 4.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/watch/mux_test.go
if err != nil { t.Fatalf("Unable start event watcher: '%v' (will not retry!)", err) } w.Stop() m.Shutdown() if _, open := <-w.ResultChan(); open { t.Errorf("Stop didn't work?") } if _, open := <-w2.ResultChan(); open { t.Errorf("Shutdown didn't work?") } // Extra stops don't hurt things w.Stop() w2.Stop() } func TestBroadcasterWatcherStopDeadlock(t *testing.T) { done := make(chan bool)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 16 15:26:25 UTC 2022 - 8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go
type NewInformerFunc func(clientset.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) -
pkg/kubelet/volumemanager/volume_manager.go
} func (vm *volumeManager) Run(sourcesReady config.SourcesReady, stopCh <-chan struct{}) { defer runtime.HandleCrash() if vm.kubeClient != nil { // start informer for CSIDriver go vm.volumePluginMgr.Run(stopCh) } go vm.desiredStateOfWorldPopulator.Run(sourcesReady, stopCh) klog.V(2).InfoS("The desired_state_of_world populator starts")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 21.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/controller.go
workers: workers, stopCh: stopCh, config: config, } // The queue underneath is starting a goroutine for metrics // exportint that is only stopped on calling ShutDown. // Given that QuotaEvaluator is created for each layer of apiserver // and often not started for some of those (e.g. aggregated apiserver) // we explicitly shut it down on stopCh signal even if it wasn't // effectively started.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 25.8K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher.go
fs: &utilfs.DefaultFs{}, desiredStateOfWorld: desiredStateOfWorld, } } // Start watches for the creation and deletion of plugin sockets at the path func (w *Watcher) Start(stopCh <-chan struct{}) error { klog.V(2).InfoS("Plugin Watcher Start", "path", w.path) // Creating the directory to be watched if it doesn't exist yet, // and walks through the directory to discover the existing plugins.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 01 00:26:37 UTC 2023 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/audit/fake/fake.go
var _ audit.Backend = &Backend{} // Backend is a fake audit backend for testing purposes. type Backend struct { OnRequest func(events []*auditinternal.Event) } // Run does nothing. func (b *Backend) Run(stopCh <-chan struct{}) error { return nil } // Shutdown does nothing. func (b *Backend) Shutdown() { return } // ProcessEvents calls a callback on a batch, if present.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 16 09:32:49 UTC 2018 - 1.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/healthz.go
// that we can register that the api-server is no longer ready while we attempt to gracefully // shutdown. func (s *GenericAPIServer) addReadyzShutdownCheck(stopCh <-chan struct{}) error { return s.AddReadyzChecks(healthz.NewShutdownHealthz(stopCh)) } // installHealthz creates the healthz endpoint for this server func (s *GenericAPIServer) installHealthz() { s.healthzRegistry.installHandler(s.Handler.NonGoRestfulMux)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 19:11:24 UTC 2024 - 6K bytes - Viewed (0) -
pkg/kubelet/pleg/evented.go
if isEventedPLEGInUse() { return } setEventedPLEGUsage(true) e.stopCh = make(chan struct{}) e.stopCacheUpdateCh = make(chan struct{}) go wait.Until(e.watchEventsChannel, 0, e.stopCh) go wait.Until(e.updateGlobalCache, globalCacheUpdatePeriod, e.stopCacheUpdateCh) } // Stop stops the Evented PLEG func (e *EventedPLEG) Stop() { e.runningMu.Lock() defer e.runningMu.Unlock() if !isEventedPLEGInUse() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 10:46:06 UTC 2024 - 16.4K bytes - Viewed (0) -
pkg/kubeapiserver/admission/initializer.go
See the License for the specific language governing permissions and limitations under the License. */ package admission import ( "k8s.io/apiserver/pkg/admission" ) // TODO add a `WantsToRun` which takes a stopCh. Might make it generic. // WantsCloudConfig defines a function which sets CloudConfig for admission plugins that need it. type WantsCloudConfig interface { SetCloudConfig([]byte) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 1.5K bytes - Viewed (0)