-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat: add CPU/memory available capacity reporting in the InternalMemberCluster controller #815
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,6 +140,7 @@ var _ = Describe("Test Internal Member Cluster Controller", Serial, func() { | |
Expect(imc.Status.Properties[propertyprovider.NodeCountProperty].Value).ShouldNot(BeEmpty()) | ||
Expect(imc.Status.ResourceUsage.Allocatable).ShouldNot(BeNil()) | ||
Expect(imc.Status.ResourceUsage.Capacity).ShouldNot(BeNil()) | ||
Expect(imc.Status.ResourceUsage.Available).ShouldNot(BeNil()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. check that the value is not zero? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi Ryan! Actually a PR that refactors the tests on the InternalMemberCluster is in progress; would it be OK if this gets addressed in a separate PR? There will be a full check on the total/allocatable/available data. |
||
Expect(imc.Status.ResourceUsage.ObservationTime).ToNot(Equal(metav1.Now())) | ||
}) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when will this happen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Ryan! The node list and the pod list does not happen at the same time, so it could happen that the available amount becomes negative.