- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 1,038 for stopCh (0.29 sec)
-
pkg/controller/serviceaccount/serviceaccounts_controller.go
nsLister corelisters.NamespaceLister nsListerSynced cache.InformerSynced queue workqueue.TypedRateLimitingInterface[string] } // Run runs the ServiceAccountsController blocks until receiving signal from stopCh. func (c *ServiceAccountsController) Run(ctx context.Context, workers int) { defer utilruntime.HandleCrash() defer c.queue.ShutDown() klog.FromContext(ctx).Info("Starting service account controller")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 7.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go
} klog.Info("Running API Priority and Fairness config worker") go wait.Until(cfgCtlr.runWorker, time.Second, stopCh) klog.Info("Running API Priority and Fairness periodic rebalancing process") go wait.Until(cfgCtlr.updateBorrowing, borrowingAdjustmentPeriod, stopCh) <-stopCh klog.Info("Shutting down API Priority and Fairness config worker") return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 48.8K bytes - Viewed (0) -
pkg/controller/resourcequota/resource_quota_controller.go
} // waitForStopOrTimeout returns a stop channel that closes when the provided stop channel closes or when the specified timeout is reached func waitForStopOrTimeout(stopCh <-chan struct{}, timeout time.Duration) <-chan struct{} { stopChWithTimeout := make(chan struct{}) go func() { defer close(stopChWithTimeout) select { case <-stopCh: case <-time.After(timeout): } }()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 21.3K bytes - Viewed (0) -
pkg/kubeapiserver/authorizer/config.go
AuthorizationConfiguration *authzconfig.AuthorizationConfiguration } // New returns the right sort of union of multiple authorizer.Authorizer objects // based on the authorizationMode or an error. // stopCh is used to shut down config reload goroutines when the server is shutting down. func (config Config) New(ctx context.Context, serverID string) (authorizer.Authorizer, authorizer.RuleResolver, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/admission.go
admissionPostStartHook := func(context server.PostStartHookContext) error { discoveryRESTMapper.Reset() go utilwait.Until(discoveryRESTMapper.Reset, 30*time.Second, context.StopCh) return nil } err = c.AddPostStartHook("start-apiserver-admission-initializer", admissionPostStartHook) if err != nil { return fmt.Errorf("failed to add post start hook for policy admission: %w", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 12 08:49:42 UTC 2024 - 9.7K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
} manager.podStoreSynced = alwaysReady manager.jobStoreSynced = alwaysReady stopCh := make(chan struct{}) defer close(stopCh) podInformer := sharedInformers.Core().V1().Pods().Informer() go podInformer.Run(stopCh) cache.WaitForCacheSync(stopCh, podInformer.HasSynced) go manager.Run(context.TODO(), 1) // Create job but don't add it to the store.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0) -
pkg/util/iptables/testing/fake.go
return err } } return nil } // Monitor is part of iptables.Interface func (f *FakeIPTables) Monitor(canary iptables.Chain, tables []iptables.Table, reloadFunc func(), interval time.Duration, stopCh <-chan struct{}) { } // HasRandomFully is part of iptables.Interface func (f *FakeIPTables) HasRandomFully() bool { return f.hasRandomFully } func (f *FakeIPTables) Present() bool { return true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 8.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/configmap_cafile_content.go
// a brief time than completely crash. If crashing is necessary, higher order logic like a healthcheck and cause failures. _ = c.loadCABundle() return nil } // Run starts the kube-apiserver and blocks until stopCh is closed. func (c *ConfigMapCAController) Run(ctx context.Context, workers int) { defer utilruntime.HandleCrash() defer c.queue.ShutDown() klog.InfoS("Starting controller", "name", c.name)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8.9K bytes - Viewed (0) -
pkg/controller/nodelifecycle/node_lifecycle_controller.go
func (nc *Controller) doNodeProcessingPassWorker(ctx context.Context) { logger := klog.FromContext(ctx) for { obj, shutdown := nc.nodeUpdateQueue.Get() // "nodeUpdateQueue" will be shutdown when "stopCh" closed; // we do not need to re-check "stopCh" again. if shutdown { return } nodeName := obj if err := nc.doNoScheduleTaintingPass(ctx, nodeName); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 51.6K bytes - Viewed (0) -
pkg/volume/plugins.go
} return nil, nil } func (pm *VolumePluginMgr) Run(stopCh <-chan struct{}) { kletHost, ok := pm.Host.(KubeletVolumeHost) if ok { // start informer for CSIDriver informerFactory := kletHost.GetInformerFactory() informerFactory.Start(stopCh) informerFactory.WaitForCacheSync(stopCh) } } // NewPersistentVolumeRecyclerPodTemplate creates a template for a recycler
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 16:13:15 UTC 2024 - 38.2K bytes - Viewed (0)