mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-01 05:22:24 +08:00
scheduler: make schedtag prefer and avoid strategy work
This commit is contained in:
12
pkg/scheduler/algorithm/plugin/plugin.go
Normal file
12
pkg/scheduler/algorithm/plugin/plugin.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package plugin
|
||||
|
||||
import (
|
||||
"yunion.io/x/onecloud/pkg/scheduler/core"
|
||||
)
|
||||
|
||||
type BasePlugin struct{}
|
||||
|
||||
// Customize priority
|
||||
func (p BasePlugin) OnPriorityEnd(u *core.Unit, c core.Candidater) {}
|
||||
|
||||
func (p BasePlugin) OnSelectEnd(u *core.Unit, c core.Candidater, count int64) {}
|
||||
Reference in New Issue
Block a user