Commit 732ef847 authored by caiweidong's avatar caiweidong

Optimize descrive pvc output organization

parent 6c22cff3
...@@ -1492,6 +1492,8 @@ func describePersistentVolumeClaim(pvc *corev1.PersistentVolumeClaim, events *co ...@@ -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 ...@@ -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
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment