Skip to content

Commit 213cc94

Browse files
committed
fixes
Signed-off-by: Britania Rodriguez Reyes <[email protected]>
1 parent 178d62b commit 213cc94

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

pkg/scheduler/profile/profile.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ limitations under the License.
1818
package profile
1919

2020
import (
21-
"go.goms.io/fleet/pkg/propertychecker/azure"
2221
"go.goms.io/fleet/pkg/scheduler/framework"
2322
"go.goms.io/fleet/pkg/scheduler/framework/plugins/clusteraffinity"
2423
"go.goms.io/fleet/pkg/scheduler/framework/plugins/clustereligibility"
@@ -32,16 +31,12 @@ const (
3231
defaultProfileName = "DefaultProfile"
3332
)
3433

35-
type Options struct {
36-
propertyChecker *azure.PropertyChecker
37-
}
38-
3934
// NewDefaultProfile creates a default scheduling profile.
40-
func NewDefaultProfile(opts Options) *framework.Profile {
35+
func NewDefaultProfile() *framework.Profile {
4136
p := framework.NewProfile(defaultProfileName)
4237

4338
// default plugin list
44-
clusterAffinityPlugin := clusteraffinity.New(clusteraffinity.WithAzurePropertyChecker(opts.propertyChecker))
39+
clusterAffinityPlugin := clusteraffinity.New()
4540
clusterEligibilityPlugin := clustereligibility.New()
4641
samePlacementAffinityPlugin := sameplacementaffinity.New()
4742
topologySpreadConstraintsPlugin := topologyspreadconstraints.New()

0 commit comments

Comments
 (0)