mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Optimize descrive pvc output organization
This commit is contained in:
parent
6c22cff317
commit
732ef847e8
@ -1492,6 +1492,8 @@ func describePersistentVolumeClaim(pvc *corev1.PersistentVolumeClaim, events *co
|
|||||||
if pvc.Spec.VolumeMode != nil {
|
if pvc.Spec.VolumeMode != nil {
|
||||||
w.Write(LEVEL_0, "VolumeMode:\t%v\n", *pvc.Spec.VolumeMode)
|
w.Write(LEVEL_0, "VolumeMode:\t%v\n", *pvc.Spec.VolumeMode)
|
||||||
}
|
}
|
||||||
|
printPodsMultiline(w, "Mounted By", mountPods)
|
||||||
|
|
||||||
if len(pvc.Status.Conditions) > 0 {
|
if len(pvc.Status.Conditions) > 0 {
|
||||||
w.Write(LEVEL_0, "Conditions:\n")
|
w.Write(LEVEL_0, "Conditions:\n")
|
||||||
w.Write(LEVEL_1, "Type\tStatus\tLastProbeTime\tLastTransitionTime\tReason\tMessage\n")
|
w.Write(LEVEL_1, "Type\tStatus\tLastProbeTime\tLastTransitionTime\tReason\tMessage\n")
|
||||||
@ -1510,8 +1512,6 @@ func describePersistentVolumeClaim(pvc *corev1.PersistentVolumeClaim, events *co
|
|||||||
DescribeEvents(events, w)
|
DescribeEvents(events, w)
|
||||||
}
|
}
|
||||||
|
|
||||||
printPodsMultiline(w, "Mounted By", mountPods)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user