fix staticcheck errors in pkg/controller/daemon.

Signed-off-by: Sakura <longfei.shang@daocloud.io>
This commit is contained in:
Sakura 2020-01-19 21:09:05 +08:00
parent 073da1588a
commit 203c7b4731
No known key found for this signature in database
GPG Key ID: 07F5F462F68548F1
3 changed files with 0 additions and 12 deletions

View File

@ -1,6 +1,5 @@
cluster/images/etcd-version-monitor
cluster/images/etcd/migrate
pkg/controller/daemon
pkg/controller/deployment
pkg/controller/disruption
pkg/controller/garbagecollector

View File

@ -305,16 +305,6 @@ func (dsc *DaemonSetsController) enqueue(ds *apps.DaemonSet) {
dsc.queue.Add(key)
}
func (dsc *DaemonSetsController) enqueueRateLimited(ds *apps.DaemonSet) {
key, err := controller.KeyFunc(ds)
if err != nil {
utilruntime.HandleError(fmt.Errorf("Couldn't get key for object %#v: %v", ds, err))
return
}
dsc.queue.AddRateLimited(key)
}
func (dsc *DaemonSetsController) enqueueDaemonSetAfter(obj interface{}, after time.Duration) {
key, err := controller.KeyFunc(obj)
if err != nil {

View File

@ -223,7 +223,6 @@ type fakePodControl struct {
podStore cache.Store
podIDMap map[string]*v1.Pod
expectations controller.ControllerExpectationsInterface
dsc *daemonSetsController
}
func newFakePodControl() *fakePodControl {