Add a storage implementation for thirdpartyresources.

This commit is contained in:
Brendan Burns 2015-08-14 22:10:15 -07:00
parent 2f9652c7f1
commit 828e4d35a7
2 changed files with 6 additions and 1 deletions

View File

@ -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 {

View File

@ -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
}
}