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(rsp): current pod resource usage should be included in resource calculation #21

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

SOF3
Copy link
Member

@SOF3 SOF3 commented Apr 5, 2023

No description provided.

@SOF3 SOF3 changed the title fix(rsp): current pod resource usage should be included in resource fix(rsp): current pod resource usage should be included in resource calculation Apr 5, 2023
@SOF3 SOF3 force-pushed the fix/subtract-previous-usage branch from 53e0b14 to dd872dd Compare April 17, 2023 11:01
@SOF3 SOF3 marked this pull request as ready for review April 17, 2023 11:01
@SOF3 SOF3 requested review from gary-lgy and limhawjia April 17, 2023 11:02
@SOF3 SOF3 force-pushed the fix/subtract-previous-usage branch from 281f67c to 5aad843 Compare April 17, 2023 11:10
usageTmp := currentUsage[cluster.Name]
usage := *usageTmp.Clone()

usage.Add(available)
Copy link
Member

Choose a reason for hiding this comment

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

Can we add a comment here to explain why this is necessary

test/e2e/e2e_test.go Outdated Show resolved Hide resolved
@SOF3
Copy link
Member Author

SOF3 commented May 12, 2023

I replaced the apiserver list request with a label-indexed pod cache in the pull request here: SOF3#1

I wrote a few simple unit tests but I am not very confident if the tests are comprehensive enough.

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