Move PluginInterface to plugin.go

pull/6/head
Dr. Stefan Schimanski 2015-10-26 11:17:20 -05:00
parent 47e2f1fba8
commit de5f0f73e7
2 changed files with 9 additions and 9 deletions

View File

@ -60,15 +60,6 @@ import (
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:
// 1: A mesos scheduler.
// 2: A kubernetes scheduler plugin.

View File

@ -51,6 +51,15 @@ const (
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 {
sync.Mutex
mesosScheduler *MesosScheduler