mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Indent "GRACE" column in pod dump of test output
This commit is contained in:
parent
a5a917603c
commit
eaf8dbcb00
@ -288,8 +288,8 @@ func logPodStates(pods []api.Pod) {
|
|||||||
if pod.DeletionGracePeriodSeconds != nil {
|
if pod.DeletionGracePeriodSeconds != nil {
|
||||||
grace = fmt.Sprintf("%ds", *pod.DeletionGracePeriodSeconds)
|
grace = fmt.Sprintf("%ds", *pod.DeletionGracePeriodSeconds)
|
||||||
}
|
}
|
||||||
Logf("%-[1]*[2]s %-[3]*[4]s %-[5]*[6]s %[7]s %[8]s",
|
Logf("%-[1]*[2]s %-[3]*[4]s %-[5]*[6]s %-[7]*[8]s %[9]s",
|
||||||
maxPodW, pod.ObjectMeta.Name, maxNodeW, pod.Spec.NodeName, maxPhaseW, pod.Status.Phase, grace, pod.Status.Conditions)
|
maxPodW, pod.ObjectMeta.Name, maxNodeW, pod.Spec.NodeName, maxPhaseW, pod.Status.Phase, maxGraceW, grace, pod.Status.Conditions)
|
||||||
}
|
}
|
||||||
Logf("") // Final empty line helps for readability.
|
Logf("") // Final empty line helps for readability.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user