mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Make update-codegen informer work on gengo/v2
This commit is contained in:
parent
0aa98ee8e3
commit
9c62235266
@ -721,7 +721,7 @@ function codegen::listers() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function codegen::informers() {
|
function codegen::informers() {
|
||||||
GO111MODULE=on GOPROXY=off go install \
|
GOPROXY=off go install \
|
||||||
k8s.io/code-generator/cmd/informer-gen
|
k8s.io/code-generator/cmd/informer-gen
|
||||||
|
|
||||||
local informergen
|
local informergen
|
||||||
@ -750,12 +750,13 @@ function codegen::informers() {
|
|||||||
| xargs -0 rm -f
|
| xargs -0 rm -f
|
||||||
|
|
||||||
"${informergen}" \
|
"${informergen}" \
|
||||||
|
--v "${KUBE_VERBOSE}" \
|
||||||
--go-header-file "${BOILERPLATE_FILENAME}" \
|
--go-header-file "${BOILERPLATE_FILENAME}" \
|
||||||
--output-base "${KUBE_ROOT}/vendor" \
|
--output-base "${KUBE_ROOT}/staging/src/k8s.io/client-go/informers" \
|
||||||
--output-package "k8s.io/client-go/informers" \
|
--output-package "k8s.io/client-go/informers" \
|
||||||
--single-directory \
|
--single-directory \
|
||||||
--versioned-clientset-package k8s.io/client-go/kubernetes \
|
--versioned-clientset-package "k8s.io/client-go/kubernetes" \
|
||||||
--listers-package k8s.io/client-go/listers \
|
--listers-package "k8s.io/client-go/listers" \
|
||||||
$(printf -- " --input-dirs %s" "${ext_apis[@]}") \
|
$(printf -- " --input-dirs %s" "${ext_apis[@]}") \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user