mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Merge pull request #3045 from nikhiljindal/setApiVersion
Setting apiVersion in restful.WebService
This commit is contained in:
commit
5c14fc610b
@ -194,6 +194,7 @@ func (g *APIGroupVersion) InstallREST(container *restful.Container, root string,
|
|||||||
ws.Produces(restful.MIME_JSON)
|
ws.Produces(restful.MIME_JSON)
|
||||||
// TODO: require json on input
|
// TODO: require json on input
|
||||||
//ws.Consumes(restful.MIME_JSON)
|
//ws.Consumes(restful.MIME_JSON)
|
||||||
|
ws.ApiVersion(version)
|
||||||
|
|
||||||
// TODO: add scheme to APIGroupVersion rather than using api.Scheme
|
// TODO: add scheme to APIGroupVersion rather than using api.Scheme
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user