Use a client interface instead of a concrete type

Aids testing
This commit is contained in:
Clayton Coleman
2017-07-22 14:53:26 -04:00
parent 1bcb381169
commit b9bebe8a4e
5 changed files with 5 additions and 6 deletions

View File

@@ -121,7 +121,7 @@ func Run(s *options.SchedulerServer) error {
rl, err := resourcelock.New(s.LeaderElection.ResourceLock,
s.LockObjectNamespace,
s.LockObjectName,
kubecli,
kubecli.Core(),
resourcelock.ResourceLockConfig{
Identity: id,
EventRecorder: recorder,