feat: several cleanups in the scheduling package

+ Remove unused variable in tests.
+ Use more common statement for interface conformance check.
+ Fix several comments in the framework plugins.
This commit is contained in:
draveness
2019-10-18 10:58:44 +08:00
parent f9acca889c
commit 39af760930
18 changed files with 37 additions and 41 deletions

View File

@@ -26,12 +26,12 @@ import (
"k8s.io/kubernetes/pkg/scheduler/nodeinfo"
)
// VolumeZone is a plugin that checks volume zone
// VolumeZone is a plugin that checks volume zone.
type VolumeZone struct {
predicate predicates.FitPredicate
}
var _ = framework.FilterPlugin(&VolumeZone{})
var _ framework.FilterPlugin = &VolumeZone{}
// Name is the name of the plugin used in the plugin registry and configurations.
const Name = "VolumeZone"