Fix panic when no clusters specified (#340)
Signed-off-by: futuretea <1913508671@qq.com>
This commit is contained in:
parent
6a2ade4512
commit
76429c6516
|
@ -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
|
||||
return nil
|
||||
return framework.NewResult(framework.Success)
|
||||
}
|
||||
|
||||
// Score calculates the score on the candidate cluster.
|
||||
|
|
Loading…
Reference in New Issue