Skip to content

Commit 203c7b4

Browse files
committed
fix staticcheck errors in pkg/controller/daemon.
Signed-off-by: Sakura <[email protected]>
1 parent 073da15 commit 203c7b4

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

hack/.staticcheck_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
cluster/images/etcd-version-monitor
22
cluster/images/etcd/migrate
3-
pkg/controller/daemon
43
pkg/controller/deployment
54
pkg/controller/disruption
65
pkg/controller/garbagecollector

pkg/controller/daemon/daemon_controller.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -305,16 +305,6 @@ func (dsc *DaemonSetsController) enqueue(ds *apps.DaemonSet) {
305305
dsc.queue.Add(key)
306306
}
307307

308-
func (dsc *DaemonSetsController) enqueueRateLimited(ds *apps.DaemonSet) {
309-
key, err := controller.KeyFunc(ds)
310-
if err != nil {
311-
utilruntime.HandleError(fmt.Errorf("Couldn't get key for object %#v: %v", ds, err))
312-
return
313-
}
314-
315-
dsc.queue.AddRateLimited(key)
316-
}
317-
318308
func (dsc *DaemonSetsController) enqueueDaemonSetAfter(obj interface{}, after time.Duration) {
319309
key, err := controller.KeyFunc(obj)
320310
if err != nil {

pkg/controller/daemon/daemon_controller_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ type fakePodControl struct {
223223
podStore cache.Store
224224
podIDMap map[string]*v1.Pod
225225
expectations controller.ControllerExpectationsInterface
226-
dsc *daemonSetsController
227226
}
228227

229228
func newFakePodControl() *fakePodControl {

0 commit comments

Comments
 (0)