Move PluginInterface to plugin.go
This commit is contained in:
@@ -60,15 +60,6 @@ import (
|
|||||||
plugin "k8s.io/kubernetes/plugin/pkg/scheduler"
|
plugin "k8s.io/kubernetes/plugin/pkg/scheduler"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PluginInterface interface {
|
|
||||||
// the apiserver may have a different state for the pod than we do
|
|
||||||
// so reconcile our records, but only for this one pod
|
|
||||||
reconcileTask(*podtask.T)
|
|
||||||
|
|
||||||
// execute the Scheduling plugin, should start a go routine and return immediately
|
|
||||||
Run(<-chan struct{})
|
|
||||||
}
|
|
||||||
|
|
||||||
// KubernetesScheduler implements:
|
// KubernetesScheduler implements:
|
||||||
// 1: A mesos scheduler.
|
// 1: A mesos scheduler.
|
||||||
// 2: A kubernetes scheduler plugin.
|
// 2: A kubernetes scheduler plugin.
|
||||||
|
|||||||
@@ -51,6 +51,15 @@ const (
|
|||||||
Scheduled = "Scheduled"
|
Scheduled = "Scheduled"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type PluginInterface interface {
|
||||||
|
// the apiserver may have a different state for the pod than we do
|
||||||
|
// so reconcile our records, but only for this one pod
|
||||||
|
reconcileTask(*podtask.T)
|
||||||
|
|
||||||
|
// execute the Scheduling plugin, should start a go routine and return immediately
|
||||||
|
Run(<-chan struct{})
|
||||||
|
}
|
||||||
|
|
||||||
type mesosSchedulerApiAdapter struct {
|
type mesosSchedulerApiAdapter struct {
|
||||||
sync.Mutex
|
sync.Mutex
|
||||||
mesosScheduler *MesosScheduler
|
mesosScheduler *MesosScheduler
|
||||||
|
|||||||
Reference in New Issue
Block a user