apiserver/pkg/endpoints/handlers/negotiation
Clayton Coleman dc06278276 CRDs should support watch of protobuf PartialObjectMetadata
Correctly ensure CRDs can be watched using protobuf when transformed to
PartialObjectMetadata. To do this we add a set of serializers allowed to
be used for "normal" requests (that return CRDs) while the serializers
supported by the infrastructure is broader and includes protobuf. During
negotatiation we check for transformation requests and protobuf is
excluded from non-transform requests.

As part of the change, correct an error message when the server returns
a 406 but the client doesn't accept the format to avoid confusing users
who set impossible Accept rules for CRDs (the dynamic client doesn't
support Protobuf, so if the server responds with a protobuf status the
message from the server is lost and the generic error was confusing).

Kubernetes-commit: 89e752add07f443248f66e4798d160f2d7529a19
2019-04-16 23:21:44 -04:00
..
doc.go fix typo in package apiserver 2018-02-01 03:04:33 +08:00
errors.go Fix golint failures on handlers/negotiation 2019-01-18 22:06:48 +00:00
negotiate.go CRDs should support watch of protobuf PartialObjectMetadata 2019-04-16 23:21:44 -04:00
negotiate_test.go Unify runtime.SerializerInfo with negotiate.AcceptedMediaTypes 2019-03-21 21:00:55 -04:00