Skip to content

Commit

Permalink
updated codegen.sh and regenerated clients
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-akulshin committed Nov 11, 2024
1 parent e9813e8 commit 46c3938
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
27 changes: 18 additions & 9 deletions build/codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,21 @@ set -o xtrace
export GO111MODULE=on
go mod download
execDir="/go/pkg/mod/k8s.io/code-generator@$(go list -f '{{.Version}}' -m k8s.io/code-generator)"
chmod +x "${execDir}"/generate-groups.sh
chmod +x "${execDir}"/generate-internal-groups.sh
"${execDir}"/generate-groups.sh \
all \
github.com/kanisterio/kanister/pkg/client \
github.com/kanisterio/kanister/pkg/apis \
"cr:v1alpha1" \
--go-header-file "$PWD"/build/boilerplate.go.txt \
-o /go/src/
boilerplateFile="$(pwd)"/build/boilerplate.go.txt

source "${execDir}"/kube_codegen.sh

kube::codegen::gen_helpers \
--boilerplate "${boilerplateFile}" \
--extra-peer-dir ./pkg/client \
--extra-peer-dir ./pkg/apis \
go/src/

kube::codegen::gen_client \
--with-applyconfig \
--with-watch \
--boilerplate "${boilerplateFile}" \
--output-dir ./pkg/client \
--output-pkg github.com/kanisterio/kanister/pkg/client \
./pkg/apis

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 46c3938

Please sign in to comment.