From 601faebfe32c65f94a02839955859794d217ec93 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Wed, 2 Dec 2015 10:40:07 -0800 Subject: [PATCH] Add custom-columns to the template flag --- pkg/kubectl/cmd/util/printing.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/kubectl/cmd/util/printing.go b/pkg/kubectl/cmd/util/printing.go index 78081d37ff4..ccb63fefac7 100644 --- a/pkg/kubectl/cmd/util/printing.go +++ b/pkg/kubectl/cmd/util/printing.go @@ -106,7 +106,9 @@ func PrinterForCommand(cmd *cobra.Command) (kubectl.ResourcePrinter, bool, error outputFormat = "template" } - templateFormat := []string{"go-template=", "go-template-file=", "jsonpath=", "jsonpath-file="} + templateFormat := []string{ + "go-template=", "go-template-file=", "jsonpath=", "jsonpath-file=", "custom-columns=", "custom-columns-file=", + } for _, format := range templateFormat { if strings.HasPrefix(outputFormat, format) { templateFile = outputFormat[len(format):]