mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #25344 from wojtek-t/fix_dynamic_client_with_protobufs
Fix dynamic client in protobuf configuration
This commit is contained in:
		@@ -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)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user