Skip to content

Commit

Permalink
Add make generated in github ci
Browse files Browse the repository at this point in the history
Sync the latest results of `make generated`
  • Loading branch information
zhengxiexie committed Nov 12, 2024
1 parent 5c31cb6 commit 4143818
Show file tree
Hide file tree
Showing 13 changed files with 508 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ jobs:

- name: Run golangci-lint
run: make golangci


- name: Run code-generator
run: make generated

- name: Run build
run: make build

Expand Down
3 changes: 2 additions & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ GROUP=vpc
SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
CODEGEN_PKG=$(go env GOMODCACHE)/k8s.io/[email protected]

mv ./pkg/client/go.mod client.go.mod
rm -fr ./pkg/client

bash "${CODEGEN_PKG}"/generate-groups.sh "deepcopy,client,informer,lister" \
Expand All @@ -22,7 +23,7 @@ ${GROUP}:v1alpha1 \

mv ./${OUTPUT_PKG} ./pkg/
cd ./pkg/client
go mod init github.com/vmware-tanzu/nsx-operator/pkg/client
mv ../../client.go.mod ./go.mod
go mod tidy
cd ../../
rm -rf ./github.com

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

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

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

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

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

1 change: 1 addition & 0 deletions pkg/client/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions pkg/client/informers/externalversions/generic.go

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

Loading

0 comments on commit 4143818

Please sign in to comment.