Handle streaming serializers more consistently

Add tests to watch behavior in both protocols (http and websocket)
against all 3 media types. Adopt the
`application/vnd.kubernetes.protobuf;stream=watch` media type for the
content that comes back from a watch call so that it can be
distinguished from a Status result.
This commit is contained in:
Clayton Coleman 2016-04-20 13:35:09 -04:00
parent 22a7e8665b
commit 51e5cc2b6e
1 changed files with 2 additions and 3 deletions

View File

@ -96,7 +96,6 @@ func Run(serverOptions *genericapiserver.ServerRunOptions) error {
}, },
Scheme: api.Scheme, Scheme: api.Scheme,
NegotiatedSerializer: api.Codecs, NegotiatedSerializer: api.Codecs,
NegotiatedStreamSerializer: api.StreamCodecs,
} }
if err := s.InstallAPIGroups([]genericapiserver.APIGroupInfo{apiGroupInfo}); err != nil { if err := s.InstallAPIGroups([]genericapiserver.APIGroupInfo{apiGroupInfo}); err != nil {
return fmt.Errorf("Error in installing API: %v", err) return fmt.Errorf("Error in installing API: %v", err)