We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16c93b0 commit 8b53f2bCopy full SHA for 8b53f2b
pkg/client/apiutil/apimachinery.go
@@ -74,7 +74,7 @@ func GVKForObject(obj runtime.Object, scheme *runtime.Scheme) (schema.GroupVersi
74
func RESTClientForGVK(gvk schema.GroupVersionKind, baseConfig *rest.Config, codecs serializer.CodecFactory) (rest.Interface, error) {
75
cfg := createRestConfig(gvk, baseConfig)
76
if cfg.NegotiatedSerializer == nil {
77
- cfg.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: codecs}
+ cfg.NegotiatedSerializer = serializer.WithoutConversionCodecFactory{CodecFactory: codecs}
78
}
79
return rest.RESTClientFor(cfg)
80
0 commit comments