From 130a9f8426e94f70ce3f62e2b151f825c0fd34a3 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Wed, 27 Dec 2023 10:03:59 -0800 Subject: [PATCH] Make update-codegen applyconfig work on gengo/v2 --- hack/update-codegen.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index dd003c944ca..c5ad51cf57a 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -578,7 +578,7 @@ function codegen::openapi() { } function codegen::applyconfigs() { - GO111MODULE=on GOPROXY=off go install \ + GOPROXY=off go install \ k8s.io/kubernetes/pkg/generated/openapi/cmd/models-schema \ k8s.io/code-generator/cmd/applyconfiguration-gen @@ -611,9 +611,10 @@ function codegen::applyconfigs() { | xargs -0 rm -f "${applyconfigurationgen}" \ + --v "${KUBE_VERBOSE}" \ --openapi-schema <("${modelsschema}") \ --go-header-file "${BOILERPLATE_FILENAME}" \ - --output-base "${KUBE_ROOT}/vendor" \ + --output-base "${KUBE_ROOT}/staging/src/${APPLYCONFIG_PKG}" \ --output-package "${APPLYCONFIG_PKG}" \ $(printf -- " --input-dirs %s" "${ext_apis[@]}") \ "$@"