File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,6 @@ import (
2424
2525var _ ActionHandler = & DrainNodeHandler {}
2626
27- const (
28- minDrainTimeout = 0 // Minimal pod drain timeout.
29- )
30-
3127type drainNodeConfig struct {
3228 podsDeleteTimeout time.Duration
3329 podDeleteRetries int
Original file line number Diff line number Diff line change 55 "context"
66 "errors"
77 "fmt"
8- "sync"
98 "time"
109
1110 "github.com/sirupsen/logrus"
@@ -50,7 +49,6 @@ type Manager struct {
5049 started bool
5150 vaAvailable bool
5251 cancelFunc context.CancelFunc
53- mu sync.RWMutex
5452}
5553
5654// Option is a functional option for configuring the Manager.
@@ -390,8 +388,8 @@ func (m *Manager) reportCacheSize(ctx context.Context) {
390388 }
391389
392390 if m .vaAvailable {
393- vas := m .volumeAttachments .Informer ().GetStore ().ListKeys ()
394- size := len (vas )
391+ was := m .volumeAttachments .Informer ().GetStore ().ListKeys ()
392+ size := len (was )
395393 m .log .WithField ("cache_size" , size ).Debug ("volumeattachment informer cache size" )
396394 metrics .SetInformerCacheSize ("volumeattachment" , size )
397395 }
You can’t perform that action at this time.
0 commit comments