mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-20 01:23:48 +00:00
fix golint failures of pkg/controller/namespace/deletion pkg/controller/serviceaccount
This commit is contained in:
@@ -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()
|
||||
|
@@ -162,7 +162,7 @@ type TokensController struct {
|
||||
maxRetries int
|
||||
}
|
||||
|
||||
// Runs controller blocks until stopCh is closed
|
||||
// Run runs controller blocks until stopCh is closed
|
||||
func (e *TokensController) Run(workers int, stopCh <-chan struct{}) {
|
||||
// Shut down queues
|
||||
defer utilruntime.HandleCrash()
|
||||
|
Reference in New Issue
Block a user