Fix panic when no clusters specified (#340)

Signed-off-by: futuretea <1913508671@qq.com>
This commit is contained in:
yuhang 2021-05-17 11:59:19 +08:00 committed by GitHub
parent 6a2ade4512
commit 76429c6516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func (p *ClusterAffinity) Filter(ctx context.Context, placement *v1alpha1.Placem
} }
// If no clusters specified and it is not excluded, mark it matched // If no clusters specified and it is not excluded, mark it matched
return nil return framework.NewResult(framework.Success)
} }
// Score calculates the score on the candidate cluster. // Score calculates the score on the candidate cluster.