Skip to content

Conversation

@britaniar
Copy link
Contributor

Description of your changes

I have:

  • Updated the profile so scheduler can have the option to have a property checker (default is nil).

  • Update the scheduler plugin to include new property checker

  • Updated clusterRequirements to work similarly but with added property checker.

  • Update matches where properties are checked to include a check for capacity.

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

How has this code been tested

  • Unit Tests
  • Standalone

Special notes for your reviewer

Currently has the bulk of the code to work so the tests are accurate. Will make smaller once the other two PRs are merged.

@britaniar britaniar force-pushed the schedulerChanges branch 2 times, most recently from d0ca169 to 0b39772 Compare November 12, 2025 18:00
@britaniar britaniar marked this pull request as ready for review November 12, 2025 18:00
return nil, errors.New("test error: mapping does not exist")
}

// CreateMockAttributeBasedVMSizeRecommenderServer creates a mock HTTP server for testing AttributeBasedVMSizeRecommenderClient.
Copy link
Contributor

Choose a reason for hiding this comment

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

it should be under test/utils folder. This file should be deprecated and we cannot mix the test code and prod code.

https://github.com/Azure/fleet/blob/main/pkg/clients/azure/compute/vmsizerecommenderclient_test.go#L208 Can you also refactor this code too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll deprecate the file on kubefleet in a different PR. I will refactor the code in the vmsizerecommenderclient with my function here.

@zhiying-lin
Copy link
Contributor

Have not reviewed the whole PR, will do after you backport the changes, thanks

@britaniar britaniar force-pushed the schedulerChanges branch 2 times, most recently from ff12634 to 45611b1 Compare November 20, 2025 01:33
zhiying-lin
zhiying-lin previously approved these changes Nov 20, 2025
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
@britaniar britaniar merged commit 59944d4 into Azure:main Nov 20, 2025
19 of 24 checks passed
@britaniar britaniar deleted the schedulerChanges branch November 20, 2025 19:59
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.

3 participants