mirror of https://github.com/k3s-io/k3s
Fixed PVC's capacity in description.
parent
304106f0f7
commit
d3efbfcd33
|
@ -1382,7 +1382,7 @@ func describeVolumeClaimTemplates(templates []api.PersistentVolumeClaim, w Prefi
|
|||
printLabelsMultilineWithIndent(w, " ", "Labels", "\t", pvc.Labels, sets.NewString())
|
||||
printLabelsMultilineWithIndent(w, " ", "Annotations", "\t", pvc.Annotations, sets.NewString())
|
||||
if capacity, ok := pvc.Spec.Resources.Requests[api.ResourceStorage]; ok {
|
||||
w.Write(LEVEL_1, "Capacity:\t%s\n", capacity)
|
||||
w.Write(LEVEL_1, "Capacity:\t%s\n", capacity.String())
|
||||
} else {
|
||||
w.Write(LEVEL_1, "Capacity:\t%s\n", "<default>")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue