mirror of https://github.com/k3s-io/k3s
Move PluginInterface to plugin.go
parent
47e2f1fba8
commit
de5f0f73e7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue