Merge pull request #96963 from bl-ue/96919-kubectl-describe-node-age-col

Fix case of Age column in kubectl describe node
This commit is contained in:
Kubernetes Prow Robot 2021-03-09 08:09:00 -08:00 committed by GitHub
commit 97e2c84057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3886,7 +3886,7 @@ func describeHorizontalPodAutoscalerV1(hpa *autoscalingv1.HorizontalPodAutoscale
func describeNodeResource(nodeNonTerminatedPodsList *corev1.PodList, node *corev1.Node, w PrefixWriter) {
w.Write(LEVEL_0, "Non-terminated Pods:\t(%d in total)\n", len(nodeNonTerminatedPodsList.Items))
w.Write(LEVEL_1, "Namespace\tName\t\tCPU Requests\tCPU Limits\tMemory Requests\tMemory Limits\tAGE\n")
w.Write(LEVEL_1, "Namespace\tName\t\tCPU Requests\tCPU Limits\tMemory Requests\tMemory Limits\tAge\n")
w.Write(LEVEL_1, "---------\t----\t\t------------\t----------\t---------------\t-------------\t---\n")
allocatable := node.Status.Capacity
if len(node.Status.Allocatable) > 0 {