diff --git a/pkg/kubectl/resource_printer.go b/pkg/kubectl/resource_printer.go index 030face3f86..a64b7bfbbab 100644 --- a/pkg/kubectl/resource_printer.go +++ b/pkg/kubectl/resource_printer.go @@ -973,7 +973,10 @@ func appendLabels(itemLabels map[string]string, columnLabels []string) string { func appendLabelTabs(columnLabels []string) string { var buffer bytes.Buffer - for range columnLabels { + for i := range columnLabels { + // NB: This odd dance is to make the loop both compatible with go 1.3 and + // pass `gofmt -s` + _ = i buffer.WriteString("\t") } buffer.WriteString("\n")