mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
let the apiserver's swaggerapi endpoint reports discovery types
This commit is contained in:
parent
8313504728
commit
ed78b9adbe
@ -239,7 +239,8 @@ func AddApiWebService(s runtime.NegotiatedSerializer, container *restful.Contain
|
|||||||
Doc("get available API versions").
|
Doc("get available API versions").
|
||||||
Operation("getAPIVersions").
|
Operation("getAPIVersions").
|
||||||
Produces(s.SupportedMediaTypes()...).
|
Produces(s.SupportedMediaTypes()...).
|
||||||
Consumes(s.SupportedMediaTypes()...))
|
Consumes(s.SupportedMediaTypes()...).
|
||||||
|
Writes(unversioned.APIVersions{}))
|
||||||
container.Add(ws)
|
container.Add(ws)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -296,7 +297,8 @@ func AddApisWebService(s runtime.NegotiatedSerializer, container *restful.Contai
|
|||||||
Doc("get available API versions").
|
Doc("get available API versions").
|
||||||
Operation("getAPIVersions").
|
Operation("getAPIVersions").
|
||||||
Produces(s.SupportedMediaTypes()...).
|
Produces(s.SupportedMediaTypes()...).
|
||||||
Consumes(s.SupportedMediaTypes()...))
|
Consumes(s.SupportedMediaTypes()...).
|
||||||
|
Writes(unversioned.APIGroupList{}))
|
||||||
container.Add(ws)
|
container.Add(ws)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -318,7 +320,8 @@ func AddGroupWebService(s runtime.NegotiatedSerializer, container *restful.Conta
|
|||||||
Doc("get information of a group").
|
Doc("get information of a group").
|
||||||
Operation("getAPIGroup").
|
Operation("getAPIGroup").
|
||||||
Produces(s.SupportedMediaTypes()...).
|
Produces(s.SupportedMediaTypes()...).
|
||||||
Consumes(s.SupportedMediaTypes()...))
|
Consumes(s.SupportedMediaTypes()...).
|
||||||
|
Writes(unversioned.APIGroup{}))
|
||||||
container.Add(ws)
|
container.Add(ws)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -337,7 +340,8 @@ func AddSupportedResourcesWebService(s runtime.NegotiatedSerializer, ws *restful
|
|||||||
Doc("get available resources").
|
Doc("get available resources").
|
||||||
Operation("getAPIResources").
|
Operation("getAPIResources").
|
||||||
Produces(s.SupportedMediaTypes()...).
|
Produces(s.SupportedMediaTypes()...).
|
||||||
Consumes(s.SupportedMediaTypes()...))
|
Consumes(s.SupportedMediaTypes()...).
|
||||||
|
Writes(unversioned.APIResourceList{}))
|
||||||
}
|
}
|
||||||
|
|
||||||
// handleVersion writes the server's version information.
|
// handleVersion writes the server's version information.
|
||||||
|
Loading…
Reference in New Issue
Block a user