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

[ISSUE-496][operator] infer resource request/limit from spec for init container #521

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

advancedxy
Copy link
Contributor

What changes were proposed in this pull request?

passing RSS resource spec to init-container's

Why are the changes needed?

This pr fixes #496.
Without this pr, RSS operator cannot work correctly with resource quota enabled namespace

Does this PR introduce any user-facing change?

no

How was this patch tested?

added UT

@advancedxy
Copy link
Contributor Author

also ping @wangao1236

@codecov-commenter
Copy link

codecov-commenter commented Jan 30, 2023

Codecov Report

Merging #521 (2f11ef1) into master (b80972c) will increase coverage by 0.37%.
The diff coverage is 50.00%.

@@             Coverage Diff              @@
##             master     #521      +/-   ##
============================================
+ Coverage     59.76%   60.14%   +0.37%     
- Complexity     1768     1771       +3     
============================================
  Files           205      205              
  Lines         11531    11533       +2     
  Branches       1033     1033              
============================================
+ Hits           6892     6936      +44     
+ Misses         4233     4193      -40     
+ Partials        406      404       -2     
Impacted Files Coverage Δ
...oy/kubernetes/operator/pkg/controller/util/util.go 32.71% <50.00%> (+23.34%) ⬆️
...he/uniffle/server/storage/LocalStorageManager.java 87.00% <0.00%> (+1.12%) ⬆️
...orage/LowestIOSampleCostSelectStorageStrategy.java 74.54% <0.00%> (+3.63%) ⬆️
...ategy/storage/AppBalanceSelectStorageStrategy.java 76.00% <0.00%> (+4.00%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@advancedxy
Copy link
Contributor Author

ping @kaijchen please approve.

Copy link
Contributor

@kaijchen kaijchen left a comment

Choose a reason for hiding this comment

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

Thanks @advancedxy for the work, and @wangao1236 for review.

@advancedxy advancedxy merged commit 8c44383 into apache:master Jan 31, 2023
@advancedxy advancedxy deleted the issue_496 branch January 31, 2023 07:15
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.

[Subtask][operator] set init-container's resource request
4 participants