From d3efbfcd335630f649f68d1063b334844ef967c5 Mon Sep 17 00:00:00 2001 From: Klaus Ma Date: Thu, 15 Jun 2017 11:56:46 +0800 Subject: [PATCH] Fixed PVC's capacity in description. --- pkg/printers/internalversion/describe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/printers/internalversion/describe.go b/pkg/printers/internalversion/describe.go index 934fc277c82..cc158415169 100644 --- a/pkg/printers/internalversion/describe.go +++ b/pkg/printers/internalversion/describe.go @@ -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", "") }