Merge pull request #65737 from roycaihw/api-linter

Automatic merge from submit-queue (batch tested with PRs 64181, 65737). 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>.

API linter framework and namesMatch API rule

**What this PR does / why we need it**:
Bump kube-openapi dependency to use the [API linter framework](https://github.com/kubernetes/kube-openapi/pull/83) in k/k OpenAPI spec generation procedure.

Currently one API rule is enforced:
"Go field names must be CamelCase. JSON field names must be camelCase. Other than capitalization of the initial letter, the two should almost always match. No underscores nor dashes in either."

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #65244

**Special notes for your reviewer**:
Most code change in this PR was generated (~1700 lines). Please see commits for detail.

**Release note**:

```release-note
NONE
```

/sig api-machinery
/cc @pwittrock @mbohlool

Kubernetes-commit: 614e3adda05c5d7189c8485ba7abe1ba7ee501a7
This commit is contained in:
Kubernetes Publisher 2018-07-13 18:00:00 -07:00
commit 5e5e185a9e

104
Godeps/Godeps.json generated
View File

@ -392,211 +392,211 @@
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/testing",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/fuzzer",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/roundtrip",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/fields",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/labels",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/selection",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/types",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/naming",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/version",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/watch",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
"Rev": "5e3c3f9281db3188d57785c1f6afe5eb504ede4f"
"Rev": "705cfa51a97f837a6599d463e2e206ad65903b60"
},
{
"ImportPath": "k8s.io/kube-openapi/pkg/util/proto",
"Rev": "91cfa479c814065e420cee7ed227db0f63a5854e"
"Rev": "0cf8f7e6ed1d2e3d47d02e3b6e559369af24d803"
}
]
}