mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #60149 from aveshagarwal/master-kubectl-priority-issue
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix kubectl describe output for priority class objects. **What this PR does / why we need it**: Fixes `kubectl describe priorityclass` (try https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#example-priorityclass) ``` Name: high-priority Value: %!s(int32=1000000) GlobalDefault: %!s(bool=false) Description: This priority class should be used for XYZ service pods only. Annotations: <none> Events: <none> ``` **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 # **Special notes for your reviewer**: **Release note**: ```release-note None ``` @bsalamat @kubernetes/sig-scheduling-bugs @kubernetes/sig-cli-bugs /king bug /sig scheduling /sig cli
This commit is contained in:
commit
948f28a74c
@ -3370,8 +3370,8 @@ func describePriorityClass(pc *scheduling.PriorityClass, events *api.EventList)
|
||||
return tabbedString(func(out io.Writer) error {
|
||||
w := NewPrefixWriter(out)
|
||||
w.Write(LEVEL_0, "Name:\t%s\n", pc.Name)
|
||||
w.Write(LEVEL_0, "Value:\t%s\n", pc.Value)
|
||||
w.Write(LEVEL_0, "GlobalDefault:\t%s\n", pc.GlobalDefault)
|
||||
w.Write(LEVEL_0, "Value:\t%v\n", pc.Value)
|
||||
w.Write(LEVEL_0, "GlobalDefault:\t%v\n", pc.GlobalDefault)
|
||||
w.Write(LEVEL_0, "Description:\t%s\n", pc.Description)
|
||||
|
||||
w.Write(LEVEL_0, "Annotations:\t%s\n", labels.FormatLabels(pc.Annotations))
|
||||
|
Loading…
Reference in New Issue
Block a user