Skip to content

Commit

Permalink
hack: generate e2e code as well
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
  • Loading branch information
stevekuznetsov committed Dec 6, 2021
1 parent b66146f commit 4857f7f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions hack/update-codegen-clients.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ bash "${CODEGEN_PKG}"/generate-groups.sh "deepcopy,client,informer,lister" \
github.com/kcp-dev/kcp/pkg/client github.com/kcp-dev/kcp/pkg/apis \
"cluster:v1alpha1 apiresource:v1alpha1 tenancy:v1alpha1" \
--go-header-file "${SCRIPT_ROOT}"/hack/boilerplate/boilerplate.go.txt --output-base ${GOPATH}/src

bash "${CODEGEN_PKG}"/generate-groups.sh "deepcopy,client" \
github.com/kcp-dev/kcp/test/e2e/reconciler/cluster/client github.com/kcp-dev/kcp/test/e2e/reconciler/cluster/apis \
"wildwest:v1alpha1" \
--go-header-file "${SCRIPT_ROOT}"/hack/boilerplate/boilerplate.go.txt --output-base ${GOPATH}/src

9 changes: 8 additions & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,12 @@ ${CONTROLLER_GEN} \
crd \
rbac:roleName=manager-role \
webhook \
paths="./..." \
paths="./pkg/..." \
output:crd:artifacts:config=config/

${CONTROLLER_GEN} \
crd \
rbac:roleName=manager-role \
webhook \
paths="./test/e2e/reconciler/cluster/..." \
output:crd:artifacts:config=test/e2e/reconciler/cluster/

0 comments on commit 4857f7f

Please sign in to comment.