Merge pull request #63893 from jennybuckley/expose-openapi-to-registry3

Automatic merge from submit-queue (batch tested with PRs 64175, 63893). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Expose openapi schema to handlers

**What this PR does / why we need it**:
Build an openapi spec for each api resource handler. This spec will be able to be consumed by server-side apply and server-side openapi validation.
The reason for putting it into master is so we can work on implementing server side validation against the openapi spec as well as server side apply, and it will make merging the server side apply feature branch a smaller, less risky PR

/sig api-machinery
/kind feature
cc @liggitt @lavalamp @seans3 @mbohlool @apelisse

**Release note**:
```release-note
NONE
```

Kubernetes-commit: 28f171bd66937dec8b24a05c4b7a1414432f9fe8
This commit is contained in:
Kubernetes Publisher 2018-05-25 03:50:14 -07:00
commit 2f54fb8dfb

102
Godeps/Godeps.json generated
View File

@ -388,207 +388,207 @@
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/equality", "ImportPath": "k8s.io/apimachinery/pkg/api/equality",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/errors", "ImportPath": "k8s.io/apimachinery/pkg/api/errors",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/meta", "ImportPath": "k8s.io/apimachinery/pkg/api/meta",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/resource", "ImportPath": "k8s.io/apimachinery/pkg/api/resource",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/testing", "ImportPath": "k8s.io/apimachinery/pkg/api/testing",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/fuzzer", "ImportPath": "k8s.io/apimachinery/pkg/api/testing/fuzzer",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/roundtrip", "ImportPath": "k8s.io/apimachinery/pkg/api/testing/roundtrip",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/conversion", "ImportPath": "k8s.io/apimachinery/pkg/conversion",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams", "ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/fields", "ImportPath": "k8s.io/apimachinery/pkg/fields",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/labels", "ImportPath": "k8s.io/apimachinery/pkg/labels",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime", "ImportPath": "k8s.io/apimachinery/pkg/runtime",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema", "ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/selection", "ImportPath": "k8s.io/apimachinery/pkg/selection",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/types", "ImportPath": "k8s.io/apimachinery/pkg/types",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/cache", "ImportPath": "k8s.io/apimachinery/pkg/util/cache",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/clock", "ImportPath": "k8s.io/apimachinery/pkg/util/clock",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/diff", "ImportPath": "k8s.io/apimachinery/pkg/util/diff",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/errors", "ImportPath": "k8s.io/apimachinery/pkg/util/errors",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/framer", "ImportPath": "k8s.io/apimachinery/pkg/util/framer",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream", "ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy", "ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr", "ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/json", "ImportPath": "k8s.io/apimachinery/pkg/util/json",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch", "ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/net", "ImportPath": "k8s.io/apimachinery/pkg/util/net",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand", "ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime", "ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/sets", "ImportPath": "k8s.io/apimachinery/pkg/util/sets",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch", "ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/validation", "ImportPath": "k8s.io/apimachinery/pkg/util/validation",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field", "ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/wait", "ImportPath": "k8s.io/apimachinery/pkg/util/wait",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml", "ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/version", "ImportPath": "k8s.io/apimachinery/pkg/version",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/watch", "ImportPath": "k8s.io/apimachinery/pkg/watch",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json", "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil", "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect", "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
"Rev": "084add7e300b3c88d77dded09a20d5063d632b5b" "Rev": "b8cd30b2bea1fca0d13fff9082d62f9956ca68aa"
}, },
{ {
"ImportPath": "k8s.io/kube-openapi/pkg/util/proto", "ImportPath": "k8s.io/kube-openapi/pkg/util/proto",
"Rev": "61db125d227fc9d4e373819a059516f32f7f23c7" "Rev": "86e28c192d2743f0232b9bc5f0a531568ef9f2a5"
} }
] ]
} }