mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Merge pull request #75863 from cwdsuzhou/optimize-describe-pvc-organization
Optimize describe pvc output organization
This commit is contained in:
commit
30165e40dd
@ -1511,6 +1511,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")
|
||||||
@ -1529,8 +1531,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