mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Update kubectl describe pod to use pod level qos
This commit is contained in:
@@ -540,6 +540,7 @@ func describePod(pod *api.Pod, events *api.EventList) (string, error) {
|
||||
}
|
||||
}
|
||||
describeVolumes(pod.Spec.Volumes, out, "")
|
||||
fmt.Fprintf(out, "QoS Tier:\t%s\n", qosutil.GetPodQos(pod))
|
||||
if events != nil {
|
||||
DescribeEvents(events, out)
|
||||
}
|
||||
@@ -843,15 +844,6 @@ func describeContainers(label string, containers []api.Container, containerStatu
|
||||
}
|
||||
}
|
||||
|
||||
resourceToQoS := qosutil.GetQoS(&container)
|
||||
if len(resourceToQoS) > 0 {
|
||||
fmt.Fprintf(out, " QoS Tier:\n")
|
||||
}
|
||||
for _, resource := range SortedQoSResourceNames(resourceToQoS) {
|
||||
qos := resourceToQoS[resource]
|
||||
fmt.Fprintf(out, " %s:\t%s\n", resource, qos)
|
||||
}
|
||||
|
||||
resources := container.Resources
|
||||
if len(resources.Limits) > 0 {
|
||||
fmt.Fprintf(out, " Limits:\n")
|
||||
|
||||
Reference in New Issue
Block a user