-
Notifications
You must be signed in to change notification settings - Fork 39.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
Removed opaque integer resources (deprecated in v1.8) #55103
Conversation
pkg/api/helper/helpers.go
Outdated
@@ -143,8 +143,7 @@ func IsStandardContainerResourceName(str string) bool { | |||
// IsExtendedResourceName returns true if the resource name is not in the | |||
// default namespace, or it has the opaque integer resource prefix. |
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.
remove OIR from the comment as well.
pkg/api/v1/helper/helpers.go
Outdated
@@ -33,7 +33,7 @@ import ( | |||
// default namespace, or it has the opaque integer resource prefix. |
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.
Ditto.
pkg/api/v1/helper/helpers.go
Outdated
@@ -33,7 +33,7 @@ import ( | |||
// default namespace, or it has the opaque integer resource prefix. | |||
func IsExtendedResourceName(name v1.ResourceName) bool { | |||
// TODO: Remove OIR part following deprecation. |
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.
Remove this TODO.
a760ee8
to
18c5ac1
Compare
ping
|
18c5ac1
to
4ec213b
Compare
@davidopp could you please add the v1.9 milestone to this one? |
}, | ||
Limits: core.ResourceList{ | ||
helper.OpaqueIntResourceName("A"): resource.MustParse("20"), | ||
core.ResourceName("example.com/a"): resource.MustParse("10"), |
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.
why change 20 to 10?
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.
This test case is to verify the handling of valid extended resource requests. One difference between extended resources and opaque integer resources is that extended resources may not be overcommitted. So, if both request and limit are specified then they must be equal to pass validation.
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.
We have other test cases in this file where extended resource request != limit, but we expect them to fail validation.
4ec213b
to
6882db3
Compare
6882db3
to
87b80a0
Compare
Attn: @kubernetes/api-approvers (@smarterclayton @thockin @lavalamp) |
/status in-progress |
You must be a member of the kubernetes/kubernetes-milestone-maintainers github team to add status labels. |
/retest |
/unassign @balajismaniam @vishh @davidopp @soltysh |
/priority critical-urgent |
/remove-priority important-soon |
[MILESTONENOTIFIER] Milestone Pull Request Needs Attention @ConnorDoyle @lavalamp @smarterclayton @thockin @kubernetes/sig-scheduling-misc Action required: During code slush, pull requests in the milestone should be in progress. Note: This pull request is marked as Example update:
Pull Request Labels
|
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ConnorDoyle, thockin, vishh Associated issue: 55102 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 55103, 56036, 56186). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #55102
Release note: