mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 04:36:00 +00:00
Use a client interface instead of a concrete type
Aids testing
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user