Skip to content

Commit

Permalink
chore: use kube_codegen.sh instead in codegen. (#2011)
Browse files Browse the repository at this point in the history
Signed-off-by: Hao Hao <[email protected]>
  • Loading branch information
xdevxy authored Sep 5, 2024
1 parent 8fc99bb commit 9f13068
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ cd "${FAKE_REPOPATH}"

CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${FAKE_REPOPATH}"; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator)}

chmod +x ${CODEGEN_PKG}/*.sh

subheader "running codegen"
bash -x ${CODEGEN_PKG}/generate-groups.sh "deepcopy" \
bash -x ${CODEGEN_PKG}/kube_codegen.sh "deepcopy" \
github.com/numaproj/numaflow/pkg/client github.com/numaproj/numaflow/pkg/apis \
"numaflow:v1alpha1" \
--go-header-file hack/boilerplate/boilerplate.go.txt

bash -x ${CODEGEN_PKG}/generate-groups.sh "client,informer,lister" \
bash -x ${CODEGEN_PKG}/kube_codegen.sh "client,informer,lister" \
github.com/numaproj/numaflow/pkg/client github.com/numaproj/numaflow/pkg/apis \
"numaflow:v1alpha1" \
--plural-exceptions="Vertex:Vertices,MonoVertex:MonoVertices" \
Expand Down

0 comments on commit 9f13068

Please sign in to comment.