From 341cec8e635fe80582a17e9d852502af02516320 Mon Sep 17 00:00:00 2001 From: Enxebre Date: Thu, 10 Oct 2019 09:42:58 +0200 Subject: [PATCH] Update apimachinery serializer method --- pkg/client/apiutil/apimachinery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/apiutil/apimachinery.go b/pkg/client/apiutil/apimachinery.go index d981afb29e..157f11f7c3 100644 --- a/pkg/client/apiutil/apimachinery.go +++ b/pkg/client/apiutil/apimachinery.go @@ -74,7 +74,7 @@ func GVKForObject(obj runtime.Object, scheme *runtime.Scheme) (schema.GroupVersi func RESTClientForGVK(gvk schema.GroupVersionKind, baseConfig *rest.Config, codecs serializer.CodecFactory) (rest.Interface, error) { cfg := createRestConfig(gvk, baseConfig) if cfg.NegotiatedSerializer == nil { - cfg.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: codecs} + cfg.NegotiatedSerializer = serializer.WithoutConversionCodecFactory{CodecFactory: codecs} } return rest.RESTClientFor(cfg) }