openapi validation: Ignore unknown types

This follows the exact same logic as swagger.
This commit is contained in:
Antoine Pelisse
2017-08-17 14:53:31 -07:00
parent a950afecdc
commit 37aacf30b5
3 changed files with 11 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ import (
. "github.com/onsi/gomega"
utilerrors "k8s.io/apimachinery/pkg/util/errors"
// This dependency is needed to register API types.
_ "k8s.io/kubernetes/pkg/api/testapi"
"k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi"
tst "k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/testing"
"k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/validation"