scheduler: fix bug of plugin invalid memory address (#341)

Signed-off-by: Garrybest <garrybest@foxmail.com>
This commit is contained in:
Rui Fang 2021-05-17 14:11:49 +08:00 committed by GitHub
parent 1056efa08c
commit f598cb4365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -46,5 +46,5 @@ func (p *ClusterAffinity) Filter(ctx context.Context, placement *v1alpha1.Placem
// Score calculates the score on the candidate cluster.
func (p *ClusterAffinity) Score(ctx context.Context, placement *v1alpha1.Placement, cluster *cluster.Cluster) (float64, *framework.Result) {
return 0, nil
return 0, framework.NewResult(framework.Success)
}