Merge pull request #92215 from chendave/declare

Explicitly declare the interfaces for extension points
This commit is contained in:
Kubernetes Prow Robot 2020-06-18 06:03:50 -07:00 committed by GitHub
commit f4e2cf7fdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ type DefaultPodTopologySpread struct {
handle framework.FrameworkHandle
}
var _ framework.PreScorePlugin = &DefaultPodTopologySpread{}
var _ framework.ScorePlugin = &DefaultPodTopologySpread{}
const (

View File

@ -28,6 +28,7 @@ import (
// NodePorts is a plugin that checks if a node has free ports for the requested pod ports.
type NodePorts struct{}
var _ framework.PreFilterPlugin = &NodePorts{}
var _ framework.FilterPlugin = &NodePorts{}
const (