@@ -21,13 +21,18 @@ set -o pipefail
21
21
SCRIPT_ROOT=$( dirname " ${BASH_SOURCE[0]} " ) /..
22
22
CODEGEN_PKG=${CODEGEN_PKG:- $(cd " ${SCRIPT_ROOT} " ; ls -d -1 ./ vendor/ k8s.io/ code-generator 2>/ dev/ null || echo ../ code-generator)}
23
23
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.
28
24
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 \
29
34
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 \
31
36
k8s.io/apiextensions-apiserver/pkg/client k8s.io/apiextensions-apiserver/pkg/apis k8s.io/apiextensions-apiserver/pkg/apis \
32
37
" apiextensions:v1beta1,v1" \
33
38
--output-base " $( dirname " ${BASH_SOURCE[0]} " ) /../../.." \
0 commit comments