mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #92215 from chendave/declare
Explicitly declare the interfaces for extension points
This commit is contained in:
commit
f4e2cf7fdc
@ -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