Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: address a bug in the IMC resource stats collection process add corresponding unit test #823

Merged
merged 2 commits into from
May 23, 2024

Conversation

michaelawyu
Copy link
Contributor

Description of your changes

This PR addresses a bug in the IMC resource stats collection process. It also adds the unit test for the affected method.

I have:

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

How has this code been tested

  • Unit tests
  • Integration tests
  • E2E tests

Special notes for your reviewer

IMC controller tests are being refactored; more PRs will ensue.

corev1.ResourceMemory: resource.MustParse("19Gi"),
},
Available: corev1.ResourceList{
corev1.ResourceCPU: resource.Quantity{},
Copy link
Contributor

Choose a reason for hiding this comment

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

does this mean negative?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi Ryan! This would be the zero value, to cover the case where inconsistency may lead to negative reporting in the available resource section.

@ryanzhang-oss ryanzhang-oss merged commit 4a4ab41 into Azure:main May 23, 2024
11 checks passed
britaniar pushed a commit to britaniar/fleet that referenced this pull request May 23, 2024
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