From 828e4d35a72d8e879695cc43b594b345124f582e Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Fri, 14 Aug 2015 22:10:15 -0700 Subject: [PATCH] Add a storage implementation for thirdpartyresources. --- pkg/api/v1/defaults.go | 5 +++++ pkg/kubectl/resource_printer.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/api/v1/defaults.go b/pkg/api/v1/defaults.go index 5abf1ab2cd6..a29563c232c 100644 --- a/pkg/api/v1/defaults.go +++ b/pkg/api/v1/defaults.go @@ -25,6 +25,11 @@ import ( func addDefaultingFuncs() { api.Scheme.AddDefaultingFuncs( + func(obj *APIVersion) { + if len(obj.APIGroup) == 0 { + obj.APIGroup = "experimental" + } + }, func(obj *ReplicationController) { var labels map[string]string if obj.Spec.Template != nil { diff --git a/pkg/kubectl/resource_printer.go b/pkg/kubectl/resource_printer.go index 3d649a6efc1..548f2753167 100644 --- a/pkg/kubectl/resource_printer.go +++ b/pkg/kubectl/resource_printer.go @@ -1088,7 +1088,7 @@ func printThirdPartyResource(rsrc *expapi.ThirdPartyResource, w io.Writer, withN func printThirdPartyResourceList(list *expapi.ThirdPartyResourceList, w io.Writer, withNamespace bool, wide bool, showAll bool, columnLabels []string) error { for _, item := range list.Items { - if err := printThirdPartyResource(&item, w, withNamespace, wide, showAll, columnLabels); err != nil { + if err := printThirdPartyResource(&item, w, withNamespace, wide, columnLabels); err != nil { return err } }