@@ -23,7 +23,7 @@ export GOPATH=$(go env GOPATH)
2323
2424SCRIPT_ROOT=$( dirname " ${BASH_SOURCE[0]} " ) /..
2525pushd " ${SCRIPT_ROOT} "
26- BOILERPLATE_HEADER=" $( pwd ) /hack/boilerplate/boilerplate.go .txt"
26+ BOILERPLATE_HEADER=" $( pwd ) /hack/boilerplate/boilerplate.generatego .txt"
2727popd
2828CODEGEN_PKG=${CODEGEN_PKG:- $(cd " ${SCRIPT_ROOT} " ; go list -f ' {{.Dir}}' -m k8s.io/ code-generator)}
2929CLUSTER_CODEGEN_PKG=${CLUSTER_CODEGEN_PKG:- $(cd " ${SCRIPT_ROOT} " ; go list -f ' {{.Dir}}' -m github.com/ kcp-dev/ code-generator/ v3)}
@@ -43,7 +43,7 @@ rm -rf ${SCRIPT_ROOT}/sdk/client/{clientset,applyconfiguration,listers,informers
4343mkdir -p ${SCRIPT_ROOT} /sdk/client/{clientset,applyconfiguration,listers,informers}
4444
4545" $GOPATH " /bin/applyconfiguration-gen \
46- --go-header-file ./hack/../hack/boilerplate/boilerplate.generatego.txt \
46+ --go-header-file " ${BOILERPLATE_HEADER} " \
4747 --output-pkg github.com/kcp-dev/kcp/sdk/client/applyconfiguration \
4848 --output-dir " ${SCRIPT_ROOT} /sdk/client/applyconfiguration" \
4949 github.com/kcp-dev/kcp/sdk/apis/core/v1alpha1 \
@@ -57,7 +57,7 @@ mkdir -p ${SCRIPT_ROOT}/sdk/client/{clientset,applyconfiguration,listers,informe
5757 k8s.io/apimachinery/pkg/version
5858
5959" $GOPATH " /bin/client-gen \
60- --go-header-file ./hack/../hack/boilerplate/boilerplate.generatego.txt \
60+ --go-header-file " ${BOILERPLATE_HEADER} " \
6161 --output-pkg github.com/kcp-dev/kcp/sdk/client/clientset \
6262 --output-dir " ${SCRIPT_ROOT} /sdk/client/clientset" \
6363 --input github.com/kcp-dev/kcp/sdk/apis/core/v1alpha1 \
@@ -70,7 +70,7 @@ mkdir -p ${SCRIPT_ROOT}/sdk/client/{clientset,applyconfiguration,listers,informe
7070 --clientset-name " versioned"
7171
7272kube::codegen::gen_helpers \
73- --boilerplate " ${SCRIPT_ROOT} " /hack/boilerplate/boilerplate.generatego.txt \
73+ --boilerplate " ${BOILERPLATE_HEADER} " \
7474 ./sdk/apis
7575
7676cd sdk
@@ -89,27 +89,27 @@ cluster::codegen::gen_client \
8989cd -
9090
9191" $GOPATH " /bin/applyconfiguration-gen \
92+ --go-header-file " ${BOILERPLATE_HEADER} " \
9293 --output-pkg github.com/kcp-dev/kcp/test/e2e/fixtures/wildwest/client/applyconfiguration \
93- --go-header-file " ${SCRIPT_ROOT} " /hack/boilerplate/boilerplate.generatego.txt \
9494 --output-dir " ${SCRIPT_ROOT} /test/e2e/fixtures/wildwest/client/applyconfiguration" \
9595 github.com/kcp-dev/kcp/test/e2e/fixtures/wildwest/apis/wildwest/v1alpha1 \
9696 k8s.io/apimachinery/pkg/apis/meta/v1
9797
9898" $GOPATH " /bin/client-gen \
99+ --go-header-file " ${BOILERPLATE_HEADER} " \
100+ --output-pkg github.com/kcp-dev/kcp/test/e2e/fixtures/wildwest/client/clientset \
101+ --output-dir " ${SCRIPT_ROOT} /test/e2e/fixtures/wildwest/client/clientset" \
99102 --input github.com/kcp-dev/kcp/test/e2e/fixtures/wildwest/apis/wildwest/v1alpha1 \
100103 --input-base=" " \
101104 --apply-configuration-package=github.com/kcp-dev/kcp/test/e2e/fixtures/wildwest/client/applyconfiguration \
102- --clientset-name " versioned" \
103- --output-pkg github.com/kcp-dev/kcp/test/e2e/fixtures/wildwest/client/clientset \
104- --go-header-file ./hack/../hack/boilerplate/boilerplate.generatego.txt \
105- --output-dir " ${SCRIPT_ROOT} /test/e2e/fixtures/wildwest/client/clientset"
105+ --clientset-name " versioned"
106106
107107kube::codegen::gen_helpers \
108- --boilerplate " ${SCRIPT_ROOT} " /hack/boilerplate/boilerplate.generatego.txt \
108+ --boilerplate " ${BOILERPLATE_HEADER} " \
109109 ./sdk/third_party/conditions/apis
110110
111111kube::codegen::gen_helpers \
112- --boilerplate " ${SCRIPT_ROOT} " /hack/boilerplate/boilerplate.generatego.txt \
112+ --boilerplate " ${BOILERPLATE_HEADER} " \
113113 ./test/e2e/fixtures/wildwest/apis
114114
115115cd ./test/e2e/fixtures/wildwest
130130go install " ${OPENAPI_PKG} " /cmd/openapi-gen
131131
132132" $GOPATH " /bin/openapi-gen \
133- --go-header-file ./hack/../hack/boilerplate/boilerplate.generatego.txt \
133+ --go-header-file " ${BOILERPLATE_HEADER} " \
134134 --output-pkg github.com/kcp-dev/kcp/pkg/openapi \
135135 --output-file zz_generated.openapi.go \
136136 --output-dir " ${SCRIPT_ROOT} /pkg/openapi" \
0 commit comments