-
Notifications
You must be signed in to change notification settings - Fork 39k
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
Display extended resources in node allocated resources #46079
Display extended resources in node allocated resources #46079
Conversation
/assign @ConnorDoyle @soltysh |
/ok-to-test |
/unassign |
/assign @Random-Liu |
/assign @dchen1107 |
@xiangpengzhao Please add a release note |
Editing release note in PR body didn't take effect. Add it manually here.
|
Release note:
|
Hmm, none of the ways I tried to add release note works... @spxtr How can I add a release note in this case? Thanks! I remember I saw some guy adding release note like this way: #46079 (comment) above. |
/release-note hope this works :) |
The change itself looks good, but I'm not sure if this isn't breaking api, since we're adding quite a few additional information. @kubernetes/sig-cli-api-reviews wdyt should we keep that additional data behind a flag or something? |
/lgtm |
/unassign |
Can we get this in for 1.10 cc @vishh @smarterclayton ? |
/cc @jiayingz |
Every now and then I get notifications from this PR and feel a great sadness. |
@ConnorDoyle haha... The PR is 🔟 months old. 👶 --> 👴 ping some folks from approvers list: @adohe @smarterclayton @liggitt @mengqiy @deads2k @brendandburns @janetkuo :) |
w.Write(LEVEL_0, "Allocated resources:\n (Total limits may be over 100 percent, i.e., overcommitted.)\n CPU Requests\tCPU Limits\tMemory Requests\tMemory Limits\n") | ||
w.Write(LEVEL_1, "------------\t----------\t---------------\t-------------\n") | ||
w.Write(LEVEL_0, "Allocated resources:\n (Total limits may be over 100 percent, i.e., overcommitted.)\n") | ||
w.Write(LEVEL_0, "Resource\tRequests\tLimits\n") |
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.
should be LEVEL_1 to get Resource
to align with --------
, right?
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.
Good catch! A big 👍 for you :)
64b9c4d
to
bd02b49
Compare
@liggitt inline comment addressed. PTAL. Thanks! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ConnorDoyle, dixudx, liggitt, soltysh, spiffxp, vishh, xiangpengzhao 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 |
/retest |
/retest Review the full test history for this PR. Silence the bot with an |
2 similar comments
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
🙏🏽 @liggitt ! |
What this PR does / why we need it:
Displays
opaque integer[extended] resources in node allocated resources of commandkubectl describe node
. This will give users more info about nodeOIR[extended resources] consumption.Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #This is a partially fix of #44271.
Special notes for your reviewer:
This PR
OIR[extended resources] details of node, it doesn't displayOIR[extended resources] requests/limits for each pod because it's hard to organize format. I tried to printOIR[extended resources] requests/limits of pods, but some strings have been eaten when a line is too long (the output has been separated into two lines by terminal). I think it's because a\t
blank can't be show in two lines.usesOIR-foo
instead ofpod.alpha.kubernetes.io/opaque-int-resource-foo
for short.OIR[extended resources] usage because I think the percentage is not so meaningful.OIR[extended resources] in single rows to be clear.UPDATE:
Example with default namespace resource:
/cc @ConnorDoyle @soltysh
ref #44181
Release note: