Move PluginInterface to plugin.go
This commit is contained in:
		@@ -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.
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user