Repository navigation
feat: add optional LimitRange to Profiles - #514
Bhup-GitHUB wants to merge 5 commits into
Conversation
Signed-off-by: Bhupesh Kumar <145711585+Bhup-GitHUB@users.noreply.github.com>
Signed-off-by: Bhupesh Kumar <145711585+Bhup-GitHUB@users.noreply.github.com>
Signed-off-by: Bhupesh Kumar <145711585+Bhup-GitHUB@users.noreply.github.com>
Signed-off-by: Bhupesh Kumar <145711585+Bhup-GitHUB@users.noreply.github.com>
Signed-off-by: Bhupesh Kumar <145711585+Bhup-GitHUB@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@juliusvonkohout Thanks for the review. I renamed the short variables in the new LimitRange code and its tests to descriptive names in e27d6a0 (for example |
|
@juliusvonkohout I renamed the short variables as you asked. Could you take another look when you have time? |
Closes #21
Problem
A Profile can set a ResourceQuota for its namespace, but not a LimitRange. When the quota covers requests/limits, every pod that omits resources is rejected, and admins have to manage a LimitRange in each profile namespace by hand.
Approach
spec.limitRangeSpec(*corev1.LimitRangeSpec) to Profile v1 and v1beta1. The field is opt-in, so existing Profiles are unchanged.kf-limit-rangeLimitRange in the profile namespace, owned by the Profile. An existing unownedkf-limit-rangeis adopted.1vs1000m) don't cause updates.validatechecks that a pod without resources is admitted with default requests.Before

After

cc @juliusvonkohout