Skip to content

Commit

Permalink
Update apimachinery serializer method
Browse files Browse the repository at this point in the history
  • Loading branch information
enxebre authored and DirectXMan12 committed Oct 10, 2019
1 parent 02356ba commit 341cec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/apiutil/apimachinery.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 341cec8

Please sign in to comment.