fix golint failures of pkg/controller/namespace/deletion pkg/controller/serviceaccount

This commit is contained in:
SataQiu
2019-05-23 12:09:01 +08:00
parent 585fa3acc8
commit b87d006a50
5 changed files with 6 additions and 5 deletions

View File

@@ -52,6 +52,7 @@ type ServiceAccountsControllerOptions struct {
NamespaceResync time.Duration
}
// DefaultServiceAccountsControllerOptions returns the default options for creating a ServiceAccountsController.
func DefaultServiceAccountsControllerOptions() ServiceAccountsControllerOptions {
return ServiceAccountsControllerOptions{
ServiceAccounts: []v1.ServiceAccount{
@@ -108,6 +109,7 @@ type ServiceAccountsController struct {
queue workqueue.RateLimitingInterface
}
// Run runs the ServiceAccountsController blocks until receiving signal from stopCh.
func (c *ServiceAccountsController) Run(workers int, stopCh <-chan struct{}) {
defer utilruntime.HandleCrash()
defer c.queue.ShutDown()