Merge pull request #76824 from wojtek-t/cleanup_protobuf_contenttype

Cleanup content-type protobuf constants
This commit is contained in:
Kubernetes Prow Robot
2019-04-24 12:25:02 -07:00
committed by GitHub
8 changed files with 37 additions and 78 deletions

View File

@@ -971,7 +971,7 @@ func expectPartialObjectMetaEvents(t *testing.T, d *json.Decoder, values ...stri
func expectPartialObjectMetaEventsProtobuf(t *testing.T, r io.Reader, values ...string) {
scheme := runtime.NewScheme()
metav1.AddToGroupVersion(scheme, schema.GroupVersion{Version: "v1"})
rs := protobuf.NewRawSerializer(scheme, scheme, "application/vnd.kubernetes.protobuf")
rs := protobuf.NewRawSerializer(scheme, scheme)
d := streaming.NewDecoder(
protobuf.LengthDelimitedFramer.NewFrameReader(ioutil.NopCloser(r)),
rs,