mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-30 05:43:58 +00:00
Clients have to renegotiate frequently, and the shape of the interface that a client wants is slightly different than the interface on the server. Create a new ClientNegotiator interface that represents what the client->server code would want to use (mostly, still evolving Encoder) and move versioning details out of RESTClient. In the long run, we want to remove internal clients and conversions from clients. This takes a step in that direction and also makes sure watch negotiation is consistent with the server.