fix controller Start method signature

Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2021-08-11 09:05:53 +00:00
parent 810bfb618a
commit 2fcfb81066
39 changed files with 106 additions and 120 deletions

View File

@@ -17,6 +17,7 @@ limitations under the License.
package clusterrolebinding
import (
"context"
"fmt"
"time"
@@ -232,6 +233,6 @@ func (c *Controller) reconcile(key string) error {
return nil
}
func (c *Controller) Start(stopCh <-chan struct{}) error {
return c.Run(4, stopCh)
func (c *Controller) Start(ctx context.Context) error {
return c.Run(4, ctx.Done())
}