mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
adjust comments
This commit is contained in:
parent
52f7fd6534
commit
e9fc6c28a2
@ -59,7 +59,7 @@ type CachedDiscoveryClient struct {
|
||||
// fresh is true if all used cache files were ours
|
||||
fresh bool
|
||||
|
||||
///
|
||||
// caching openapi v3 client which wraps the delegate's client
|
||||
openapiClient openapi.Client
|
||||
}
|
||||
|
||||
|
@ -156,7 +156,7 @@ func (c *FakeDiscovery) OpenAPISchema() (*openapi_v2.Document, error) {
|
||||
}
|
||||
|
||||
func (c *FakeDiscovery) OpenAPIV3() openapi.Client {
|
||||
panic("implement me")
|
||||
panic("unimplemented")
|
||||
}
|
||||
|
||||
// RESTClient returns a RESTClient that is used to communicate with API server
|
||||
|
@ -40,8 +40,6 @@ func newGroupVersion(client *client, item handler3.OpenAPIV3DiscoveryGroupVersio
|
||||
}
|
||||
|
||||
func (g *groupversion) Schema() (*openapi_v3.Document, error) {
|
||||
// Check if this GVK is in the discovery map, if it is not, then it is not
|
||||
// available. No point making the request.
|
||||
data, err := g.client.restClient.Get().
|
||||
RequestURI(g.item.ServerRelativeURL).
|
||||
SetHeader("Accept", openAPIV3mimePb).
|
||||
|
Loading…
Reference in New Issue
Block a user