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 |
||
|---|---|---|
| .. | ||
| fieldmanager | ||
| negotiation | ||
| responsewriters | ||
| create.go | ||
| create_test.go | ||
| delete.go | ||
| doc.go | ||
| get.go | ||
| namer.go | ||
| namer_test.go | ||
| patch.go | ||
| response.go | ||
| rest.go | ||
| rest_test.go | ||
| update.go | ||
| watch.go | ||