-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
kubectl get priorityclass
prints value column
#69431
kubectl get priorityclass
prints value column
#69431
Conversation
@kubernetes/sig-cli-pr-reviews |
ba15910
to
0f48f59
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
/assign @deads2k |
should we include the GlobalDefault field value? that seems more useful than the creation time |
Yeah. Correct. @liggitt 👍 |
@liggitt I think so. Basically there are two options:
BTW: as PriorityClass is mostly used and designed by @bsalamat in preemption logic. I'd like to hear about Bobby's comments. |
Thanks Wei for this improvement. I would prefer the following output:
This is very similar to what you wrote. It just puts "value" before "global default". Value is more important in my opinion. Hence, it is show before global default. |
0f48f59
to
cdd375e
Compare
Added BTW: according to kubectl dev guide, it said:
So I used NAME VALUE GLOBAL-DEFAULT AGE
system-cluster-critical 2000000000 false 38s
system-node-critical 2000001000 false 38s And I do see other API objects follow this convention: NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 3m11s |
cdd375e
to
6bddd91
Compare
6bddd91
to
da041ec
Compare
/retest |
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
Thanks, @Huang-Wei! We should add "Description" to "-o wide" as well.
@bsalamat hmm, I'm a little hesitant on adding
So maybe better for users to use |
@Huang-Wei I agree. In fact, since |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Huang-Wei, liggitt 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 |
What this PR does / why we need it:
Prints out
value
column when runningkubectl get priorityclass
.Before:
Special notes for your reviewer:
-o wide
columns.(global default)
to the name if it's a global default priorityclass.Release note:
/kind feature
/sig cli
/sig scheduling