kubectl: Remove swagger 1.2 entirely.

Kubernetes-commit: d1ce36371e637f159256f1f43e3590926ff906d5
This commit is contained in:
Antoine Pelisse
2017-09-28 15:58:53 -07:00
committed by Kubernetes Publisher
parent 2f42898d3b
commit 5e3eb38791
9 changed files with 75 additions and 220 deletions

View File

@@ -28,7 +28,6 @@ import (
restclient "k8s.io/client-go/rest"
"k8s.io/client-go/rest/fake"
"github.com/emicklei/go-restful-swagger12"
"github.com/googleapis/gnostic/OpenAPIv2"
"github.com/stretchr/testify/assert"
)
@@ -380,10 +379,6 @@ func (c *fakeCachedDiscoveryInterface) ServerVersion() (*version.Info, error) {
return &version.Info{}, nil
}
func (c *fakeCachedDiscoveryInterface) SwaggerSchema(version schema.GroupVersion) (*swagger.ApiDeclaration, error) {
return &swagger.ApiDeclaration{}, nil
}
func (c *fakeCachedDiscoveryInterface) OpenAPISchema() (*openapi_v2.Document, error) {
return &openapi_v2.Document{}, nil
}