We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e98cc2 commit 0bf5b5aCopy full SHA for 0bf5b5a
controller.go
@@ -148,7 +148,7 @@ func NewController(
148
// as syncing informer caches and starting workers. It will block until stopCh
149
// is closed, at which point it will shutdown the workqueue and wait for
150
// workers to finish processing their current work items.
151
-func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error {
+func (c *Controller) Run(workers int, stopCh <-chan struct{}) error {
152
defer utilruntime.HandleCrash()
153
defer c.workqueue.ShutDown()
154
@@ -163,7 +163,7 @@ func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error {
163
164
klog.Info("Starting workers")
165
// Launch two workers to process Foo resources
166
- for i := 0; i < threadiness; i++ {
+ for i := 0; i < workers; i++ {
167
go wait.Until(c.runWorker, time.Second, stopCh)
168
}
169
0 commit comments