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

[v0.22] Revert "bugfix: set allocatable resources to 0 when free capacity goes negative" | bugfix: use PodRequests helper function from k8s.io/kubectl for correct allocatable resource calculation #2456

Open
wants to merge 2 commits into
base: v0.22
Choose a base branch
from

Conversation

loft-bot
Copy link

@loft-bot loft-bot commented Feb 6, 2025

Backport from main to v0.22

Original PR Nr.: #2349

Backported Commits:

  • c1198a3 Revert "bugfix: set allocatable resources to 0 when free capacity goes negative"

This reverts commit db1fd5c.

  • 01cdc85 bugfix: use PodRequests helper function from k8s.io/kubectl for correct allocatable resource calculation

Original PR Description:

What issue type does this pull request address? (keep at least one, remove the others)
/kind bugfix

What does this pull request do? Which issues does it resolve? (use resolves #<issue_number> if possible)
resolves ENG-5716

Please provide a short message that should be published in the vcluster release notes
Fixed an issue where vcluster would calculate allocatable resources inside the virtual cluster incorrectly when virtual cluster scheduler was enabled

What else do we need to know?
With this PR, we are updating the code to use the same utility function that kubectl uses for the resource calculation.

…s negative"

This reverts commit db1fd5c.

(cherry picked from commit c1198a3)
…ct allocatable resource calculation

(cherry picked from commit 01cdc85)
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