kubectl OpenAPI support

Kubernetes-commit: 212c2a3a7217ff7e0a7c895582c7a25d03ac7f8c
This commit is contained in:
Phillip Wittrock
2017-04-13 18:01:38 -07:00
committed by Kubernetes Publisher
parent c192350f2c
commit 97a8b3b040
4 changed files with 110 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ import (
"k8s.io/client-go/rest/fake"
"github.com/emicklei/go-restful/swagger"
"github.com/go-openapi/spec"
"github.com/stretchr/testify/assert"
)
@@ -347,3 +348,7 @@ func (c *fakeCachedDiscoveryInterface) ServerVersion() (*version.Info, error) {
func (c *fakeCachedDiscoveryInterface) SwaggerSchema(version schema.GroupVersion) (*swagger.ApiDeclaration, error) {
return &swagger.ApiDeclaration{}, nil
}
func (c *fakeCachedDiscoveryInterface) OpenAPISchema() (*spec.Swagger, error) {
return &spec.Swagger{}, nil
}