Skip to content

Commit 6c0688f

Browse files
committed
santize codegen scripts
1 parent 15a883b commit 6c0688f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

staging/src/k8s.io/apiextensions-apiserver/hack/update-codegen.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@ set -o pipefail
2121
SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
2222
CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${SCRIPT_ROOT}"; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator)}
2323

24-
# generate the code with:
25-
# --output-base because this script should also be able to run inside the vendor dir of
26-
# k8s.io/kubernetes. The output-base is needed for the generators to output into the vendor dir
27-
# instead of the $GOPATH directly. For normal projects this can be dropped.
2824
CLIENTSET_NAME_VERSIONED=clientset \
25+
CLIENTSET_PKG_NAME=clientset \
26+
bash "${CODEGEN_PKG}/generate-groups.sh" deepcopy,client,lister,informer \
27+
k8s.io/apiextensions-apiserver/pkg/client k8s.io/apiextensions-apiserver/pkg/apis \
28+
"apiextensions:v1beta1,v1" \
29+
--output-base "$(dirname "${BASH_SOURCE[0]}")/../../.." \
30+
--go-header-file "${SCRIPT_ROOT}/hack/boilerplate.go.txt"
31+
32+
CLIENTSET_NAME_VERSIONED=clientset \
33+
CLIENTSET_PKG_NAME=clientset \
2934
CLIENTSET_NAME_INTERNAL=internalclientset \
30-
bash "${CODEGEN_PKG}/generate-internal-groups.sh" deepcopy,client,lister,informer,conversion \
35+
bash "${CODEGEN_PKG}/generate-internal-groups.sh" deepcopy,conversion \
3136
k8s.io/apiextensions-apiserver/pkg/client k8s.io/apiextensions-apiserver/pkg/apis k8s.io/apiextensions-apiserver/pkg/apis \
3237
"apiextensions:v1beta1,v1" \
3338
--output-base "$(dirname "${BASH_SOURCE[0]}")/../../.." \

0 commit comments

Comments
 (0)