From 5de47de7cf354d37e1211e13d261a19d258f8a82 Mon Sep 17 00:00:00 2001 From: Haowei Cai Date: Thu, 16 Jul 2020 14:54:06 -0700 Subject: [PATCH] use canonical import path in client-gen so that package comments are honored --- hack/update-codegen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 838fe0917cc..b7fdfa988c9 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -59,7 +59,7 @@ GV_DIRS_CSV=$(IFS=',';echo "${GV_DIRS[*]// /,}";IFS=$) # This can be called with one flag, --verify-only, so it works for both the # update- and verify- scripts. -${clientgen} --output-base "${KUBE_ROOT}/vendor" --output-package="k8s.io/client-go" --clientset-name="kubernetes" --input-base="k8s.io/kubernetes/vendor/k8s.io/api" --input="${GV_DIRS_CSV}" --go-header-file "${KUBE_ROOT}/hack/boilerplate/boilerplate.generatego.txt" "$@" +${clientgen} --output-base "${KUBE_ROOT}/vendor" --output-package="k8s.io/client-go" --clientset-name="kubernetes" --input-base="k8s.io/api" --input="${GV_DIRS_CSV}" --go-header-file "${KUBE_ROOT}/hack/boilerplate/boilerplate.generatego.txt" "$@" listergen_external_apis=() kube::util::read-array listergen_external_apis < <(