From de5f0f73e792af164ccce0891be8c4cbd3da1230 Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Mon, 26 Oct 2015 11:17:20 -0500 Subject: [PATCH] Move PluginInterface to plugin.go --- contrib/mesos/pkg/scheduler/mesos_scheduler.go | 9 --------- contrib/mesos/pkg/scheduler/plugin.go | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/contrib/mesos/pkg/scheduler/mesos_scheduler.go b/contrib/mesos/pkg/scheduler/mesos_scheduler.go index dee1aec848f..2e90cdf42b3 100644 --- a/contrib/mesos/pkg/scheduler/mesos_scheduler.go +++ b/contrib/mesos/pkg/scheduler/mesos_scheduler.go @@ -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. diff --git a/contrib/mesos/pkg/scheduler/plugin.go b/contrib/mesos/pkg/scheduler/plugin.go index 2c42112b9e9..6b09b1db683 100644 --- a/contrib/mesos/pkg/scheduler/plugin.go +++ b/contrib/mesos/pkg/scheduler/plugin.go @@ -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