From ca5f18370ae28698d653f0e88f92ff975208d6e9 Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Mon, 9 May 2016 13:52:10 +0200 Subject: [PATCH] Fix dynamic client in protobuf configuration --- pkg/client/typed/dynamic/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/client/typed/dynamic/client.go b/pkg/client/typed/dynamic/client.go index b2e6d228917..cb4bfbc687a 100644 --- a/pkg/client/typed/dynamic/client.go +++ b/pkg/client/typed/dynamic/client.go @@ -52,6 +52,7 @@ func NewClient(conf *restclient.Config) (*Client, error) { codec := dynamicCodec{} // 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) conf.NegotiatedSerializer = serializer.NegotiatedSerializerWrapper(runtime.SerializerInfo{Serializer: codec}, streamingInfo)