diff --git a/pkg/scheduler/framework/plugins/clusteraffinity/cluster_affinity.go b/pkg/scheduler/framework/plugins/clusteraffinity/cluster_affinity.go index 8d6b2e912..6f288bc5d 100644 --- a/pkg/scheduler/framework/plugins/clusteraffinity/cluster_affinity.go +++ b/pkg/scheduler/framework/plugins/clusteraffinity/cluster_affinity.go @@ -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.