From 39a32a627f5503d6724e1564fd113966c061e1ef Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Tue, 28 Feb 2017 18:36:41 -0500 Subject: [PATCH] Clean up top level labels in describer --- pkg/printers/internalversion/describe.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/printers/internalversion/describe.go b/pkg/printers/internalversion/describe.go index ce696443b79..a5a38756085 100644 --- a/pkg/printers/internalversion/describe.go +++ b/pkg/printers/internalversion/describe.go @@ -577,7 +577,7 @@ func printControllers(annotation map[string]string) string { func describeVolumes(volumes []api.Volume, w *PrefixWriter, space string) { if volumes == nil || len(volumes) == 0 { - w.Write(LEVEL_0, "%sNo volumes.\n", space) + w.Write(LEVEL_0, "%sVolumes:\t\n", space) return } w.Write(LEVEL_0, "%sVolumes:\n", space) @@ -1026,7 +1026,7 @@ func describeContainerVolumes(container api.Container, w *PrefixWriter) { if len(container.VolumeMounts) == 0 { none = "\t" } - w.Write(LEVEL_2, "Volume Mounts:%s\n", none) + w.Write(LEVEL_2, "Mounts:%s\n", none) sort.Sort(SortableVolumeMounts(container.VolumeMounts)) for _, mount := range container.VolumeMounts { flags := []string{} @@ -1047,7 +1047,7 @@ func describeContainerEnvVars(container api.Container, resolverFn EnvVarResolver if len(container.Env) == 0 { none = "\t" } - w.Write(LEVEL_2, "Environment Variables:%s\n", none) + w.Write(LEVEL_2, "Environment:%s\n", none) for _, e := range container.Env { if e.ValueFrom == nil { @@ -2341,7 +2341,7 @@ func getPodsTotalRequestsAndLimits(podList *api.PodList) (reqs map[api.ResourceN func DescribeEvents(el *api.EventList, w *PrefixWriter) { if len(el.Items) == 0 { - w.Write(LEVEL_0, "No events.\n") + w.Write(LEVEL_0, "Events:\t\n") return } sort.Sort(events.SortableEvents(el.Items))