-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Don't Require User Input to Account for LimitRange Min #2020
Don't Require User Input to Account for LimitRange Min #2020
Conversation
👍 Nice improvement! This makes sense to me. |
Great! I am comfortable with this as stands and think it makes more sense to not include as part of taskrun/pipelinerun specs at least for initial release of this feature. If we find there is reason for allowing some level of user control on this, it can be added down the line. But this makes more sense to me as a starting point. |
40266f6
to
d615273
Compare
/test pull-tekton-pipeline-integration-tests |
d615273
to
5820166
Compare
for _, lrItem := range lrItems { | ||
if lrItem.Type == corev1.LimitTypeContainer { | ||
if lrItem.Min != nil { | ||
for k, v := range lrItem.Min { |
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.
Open to not having this approach, which is to search for the max LimitRange container min in the event there are conflicting container mins.
An alternative approach would just be to break the loop after the first container min is found and let it potentially fail.
5820166
to
b9de4fb
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbwsg, vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Opening this as a proposal to improve upon #1991. This pull request removes the requirement of having to use
limitRangeName
to specify a LimitRange minimum to account for with TaskRuns.This approach may be easier for users who do not have permissions to query LimitRanges or do not know which LimitRange has container requests defined in a namespace.
Submitter Checklist
Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
Release Notes