Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ac1557a8
Unverified
Commit
ac1557a8
authored
Apr 19, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 19, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76781 from cwdsuzhou/priorityClass
Support describe priority class of pod, rs, sts...
parents
e4f9d8fe
31f751c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
describe.go
pkg/kubectl/describe/versioned/describe.go
+6
-0
No files found.
pkg/kubectl/describe/versioned/describe.go
View file @
ac1557a8
...
...
@@ -735,6 +735,9 @@ func describePod(pod *corev1.Pod, events *corev1.EventList) (string, error) {
}
else
{
w
.
Write
(
LEVEL_0
,
"QoS Class:
\t
%s
\n
"
,
qos
.
GetPodQOS
(
pod
))
}
if
len
(
pod
.
Spec
.
PriorityClassName
)
>
0
{
w
.
Write
(
LEVEL_0
,
"Priority Class Name:
\t
%s
\n
"
,
pod
.
Spec
.
PriorityClassName
)
}
printLabelsMultiline
(
w
,
"Node-Selectors"
,
pod
.
Spec
.
NodeSelector
)
printPodTolerationsMultiline
(
w
,
"Tolerations"
,
pod
.
Spec
.
Tolerations
)
if
events
!=
nil
{
...
...
@@ -1964,6 +1967,9 @@ func DescribePodTemplate(template *corev1.PodTemplateSpec, w PrefixWriter) {
}
describeContainers
(
"Containers"
,
template
.
Spec
.
Containers
,
nil
,
nil
,
w
,
" "
)
describeVolumes
(
template
.
Spec
.
Volumes
,
w
,
" "
)
if
len
(
template
.
Spec
.
PriorityClassName
)
>
0
{
w
.
Write
(
LEVEL_1
,
"Priority Class Name:
\t
%s
\n
"
,
template
.
Spec
.
PriorityClassName
)
}
}
// ReplicaSetDescriber generates information about a ReplicaSet and the pods it has created.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment