mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Explicitly declare the interfaces for extension points
This make it easier to catch the issue during the compilation, also, this also align with other plugins, i.e. plugin of "InterPodAffinity". Signed-off-by: Dave Chen <dave.chen@arm.com>
This commit is contained in:
parent
53f3699cf9
commit
9ebd872e71
@ -33,6 +33,7 @@ type DefaultPodTopologySpread struct {
|
|||||||
handle framework.FrameworkHandle
|
handle framework.FrameworkHandle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _ framework.PreScorePlugin = &DefaultPodTopologySpread{}
|
||||||
var _ framework.ScorePlugin = &DefaultPodTopologySpread{}
|
var _ framework.ScorePlugin = &DefaultPodTopologySpread{}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -28,6 +28,7 @@ import (
|
|||||||
// NodePorts is a plugin that checks if a node has free ports for the requested pod ports.
|
// NodePorts is a plugin that checks if a node has free ports for the requested pod ports.
|
||||||
type NodePorts struct{}
|
type NodePorts struct{}
|
||||||
|
|
||||||
|
var _ framework.PreFilterPlugin = &NodePorts{}
|
||||||
var _ framework.FilterPlugin = &NodePorts{}
|
var _ framework.FilterPlugin = &NodePorts{}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Loading…
Reference in New Issue
Block a user