mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Make PodScheduler in MesosScheduler explicit
This commit is contained in:
parent
de5f0f73e7
commit
c8edeb0f57
@ -70,7 +70,7 @@ type MesosScheduler struct {
|
||||
// and the invoking the pod registry interfaces.
|
||||
// In particular, changes to podtask.T objects are currently guarded by this lock.
|
||||
*sync.RWMutex
|
||||
podschedulers.PodScheduler
|
||||
podScheduler podschedulers.PodScheduler
|
||||
|
||||
// Config related, write-once
|
||||
|
||||
@ -127,7 +127,7 @@ func New(config Config) *MesosScheduler {
|
||||
RWMutex: new(sync.RWMutex),
|
||||
executor: config.Executor,
|
||||
executorGroup: uid.Parse(config.Executor.ExecutorId.GetValue()).Group(),
|
||||
PodScheduler: config.PodScheduler,
|
||||
podScheduler: config.PodScheduler,
|
||||
client: config.Client,
|
||||
etcdClient: config.EtcdClient,
|
||||
failoverTimeout: config.FailoverTimeout,
|
||||
|
@ -66,7 +66,7 @@ type mesosSchedulerApiAdapter struct {
|
||||
}
|
||||
|
||||
func (k *mesosSchedulerApiAdapter) Algorithm() podschedulers.PodScheduler {
|
||||
return k.mesosScheduler
|
||||
return k.mesosScheduler.podScheduler
|
||||
}
|
||||
|
||||
func (k *mesosSchedulerApiAdapter) Offers() offers.Registry {
|
||||
|
Loading…
Reference in New Issue
Block a user