Skip to content

Commit f899c84

Browse files
authored
Merge pull request #490 from BinacsLee/binacs/ensure-type-implements-interface
ensure plugins implement the interface
2 parents 5d4b5e2 + 69e3add commit f899c84

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

pkg/networkaware/topologicalsort/topologicalsort.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ type TopologicalSort struct {
4343
namespaces []string
4444
}
4545

46+
var _ framework.QueueSortPlugin = &TopologicalSort{}
47+
4648
// Name : returns the name of the plugin.
4749
func (ts *TopologicalSort) Name() string {
4850
return Name

pkg/trimaran/loadvariationriskbalancing/loadvariationriskbalancing.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ type LoadVariationRiskBalancing struct {
4949
args *pluginConfig.LoadVariationRiskBalancingArgs
5050
}
5151

52+
var _ framework.ScorePlugin = &LoadVariationRiskBalancing{}
53+
5254
// New : create an instance of a LoadVariationRiskBalancing plugin
5355
func New(obj runtime.Object, handle framework.Handle) (framework.Plugin, error) {
5456
klog.V(4).InfoS("Creating new instance of the LoadVariationRiskBalancing plugin")

pkg/trimaran/targetloadpacking/targetloadpacking.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ type TargetLoadPacking struct {
5959
args *pluginConfig.TargetLoadPackingArgs
6060
}
6161

62+
var _ framework.ScorePlugin = &TargetLoadPacking{}
63+
6264
func New(obj runtime.Object, handle framework.Handle) (framework.Plugin, error) {
6365
klog.V(4).InfoS("Creating new instance of the TargetLoadPacking plugin")
6466
// cast object into plugin arguments object

0 commit comments

Comments
 (0)