Merge pull request #117261 from thockin/codegen_openapi_use_code-generator

Codegen: use openapi-gen via k8s.io/code-generator
This commit is contained in:
Kubernetes Prow Robot 2023-04-12 18:08:34 -07:00 committed by GitHub
commit 297dc976b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -546,7 +546,7 @@ function indirect_array() {
function codegen::openapi() { function codegen::openapi() {
# Build the tool. # Build the tool.
GO111MODULE=on GOPROXY=off go install \ GO111MODULE=on GOPROXY=off go install \
k8s.io/kube-openapi/cmd/openapi-gen k8s.io/code-generator/cmd/openapi-gen
# The result file, in each pkg, of open-api generation. # The result file, in each pkg, of open-api generation.
local output_base="${GENERATED_FILE_PREFIX}openapi" local output_base="${GENERATED_FILE_PREFIX}openapi"