Commit ca5f1837 authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Fix dynamic client in protobuf configuration

parent cd3ab5d8
...@@ -52,6 +52,7 @@ func NewClient(conf *restclient.Config) (*Client, error) { ...@@ -52,6 +52,7 @@ func NewClient(conf *restclient.Config) (*Client, error) {
codec := dynamicCodec{} codec := dynamicCodec{}
// TODO: it's questionable that this should be using anything other than unstructured schema and JSON // TODO: it's questionable that this should be using anything other than unstructured schema and JSON
conf.ContentType = runtime.ContentTypeJSON
streamingInfo, _ := api.Codecs.StreamingSerializerForMediaType("application/json;stream=watch", nil) streamingInfo, _ := api.Codecs.StreamingSerializerForMediaType("application/json;stream=watch", nil)
conf.NegotiatedSerializer = serializer.NegotiatedSerializerWrapper(runtime.SerializerInfo{Serializer: codec}, streamingInfo) conf.NegotiatedSerializer = serializer.NegotiatedSerializerWrapper(runtime.SerializerInfo{Serializer: codec}, streamingInfo)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment