Skip to content

Conversation

@britaniar
Copy link
Collaborator

Description of your changes

I have:

  • Updated scheduler cluster affinity plugin to allow for future implementation.

  • Updated profile to allow cluster affinity plugin updates.

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

  • UT
  • E2E

Special notes for your reviewer

Helps with Azure backport changes that may conflict with property checker changes.

Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
@codecov
Copy link

codecov bot commented Nov 13, 2025

Codecov Report

❌ Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/scheduler/profile/profile.go 0.00% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Collaborator

@zhiying-lin zhiying-lin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the minor comments can be addressed in a separate PR

)

// Plugin is the scheduler plugin that enforces the cluster affinity (if any) defined on a CRP.
// Plugin is the scheduler plugin that enforces the cluster affinity (if any) defined on a R/CRP.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Plugin is the scheduler plugin that enforces the cluster affinity (if any) defined on a R/CRP.
// Plugin is the scheduler plugin that enforces the cluster affinity (if any) defined on a RP/CRP.

return NewProfile(Options{})
}

func NewProfile(opts Options) *framework.Profile {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add comment for any public func

@zhiying-lin zhiying-lin changed the title fix: update scheduler for future implementation fix: update scheduler to support customized cluster affinity plugin Nov 14, 2025
@britaniar britaniar merged commit 8848071 into kubefleet-dev:main Nov 18, 2025
14 of 16 checks passed
@britaniar britaniar deleted the fixScheduler branch November 18, 2025 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants