kubectl: remove ThirdPartyResourceData behavior for unregistered objects

This commit is contained in:
Jordan Liggitt
2017-01-21 15:48:41 -05:00
parent a82c4481f3
commit dd6d454848
3 changed files with 1 additions and 22 deletions

View File

@@ -49,7 +49,6 @@ import (
"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
"k8s.io/kubernetes/pkg/kubectl"
"k8s.io/kubernetes/pkg/kubectl/resource"
"k8s.io/kubernetes/pkg/registry/extensions/thirdpartyresourcedata"
)
type ring0Factory struct {
@@ -209,7 +208,7 @@ func (f *ring0Factory) Decoder(toInternal bool) runtime.Decoder {
} else {
decoder = api.Codecs.UniversalDeserializer()
}
return thirdpartyresourcedata.NewDecoder(decoder, "")
return decoder
}
func (f *ring0Factory) JSONEncoder() runtime.Encoder {