Skip to content

Commit f4e2cf7

Browse files
authored
Merge pull request kubernetes#92215 from chendave/declare
Explicitly declare the interfaces for extension points
2 parents 05e245f + 9ebd872 commit f4e2cf7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/scheduler/framework/plugins/defaultpodtopologyspread/default_pod_topology_spread.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type DefaultPodTopologySpread struct {
3333
handle framework.FrameworkHandle
3434
}
3535

36+
var _ framework.PreScorePlugin = &DefaultPodTopologySpread{}
3637
var _ framework.ScorePlugin = &DefaultPodTopologySpread{}
3738

3839
const (

pkg/scheduler/framework/plugins/nodeports/node_ports.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
// NodePorts is a plugin that checks if a node has free ports for the requested pod ports.
2929
type NodePorts struct{}
3030

31+
var _ framework.PreFilterPlugin = &NodePorts{}
3132
var _ framework.FilterPlugin = &NodePorts{}
3233

3334
const (

0 commit comments

Comments
 (0)