Fixed PVC's capacity in description.
This commit is contained in:
		@@ -1382,7 +1382,7 @@ func describeVolumeClaimTemplates(templates []api.PersistentVolumeClaim, w Prefi
 | 
				
			|||||||
		printLabelsMultilineWithIndent(w, "  ", "Labels", "\t", pvc.Labels, sets.NewString())
 | 
							printLabelsMultilineWithIndent(w, "  ", "Labels", "\t", pvc.Labels, sets.NewString())
 | 
				
			||||||
		printLabelsMultilineWithIndent(w, "  ", "Annotations", "\t", pvc.Annotations, sets.NewString())
 | 
							printLabelsMultilineWithIndent(w, "  ", "Annotations", "\t", pvc.Annotations, sets.NewString())
 | 
				
			||||||
		if capacity, ok := pvc.Spec.Resources.Requests[api.ResourceStorage]; ok {
 | 
							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 {
 | 
							} else {
 | 
				
			||||||
			w.Write(LEVEL_1, "Capacity:\t%s\n", "<default>")
 | 
								w.Write(LEVEL_1, "Capacity:\t%s\n", "<default>")
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user