Skip to content

Commit

Permalink
Add make target generate
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Chen <[email protected]>
  • Loading branch information
ChenYi015 committed Sep 29, 2024
1 parent 6542d4a commit b39166e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ help: ## Display this help.
manifests: controller-gen ## Generate CustomResourceDefinition, RBAC and WebhookConfiguration manifests.
GO111MODULE=off $(CONTROLLER_GEN) crd:generateEmbeddedObjectMeta=true rbac:roleName=manager-role webhook paths="./pkg/apis/tensorflow/v1" output:crd:artifacts:config=manifests/base/crds

.PHONY: generate
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
GOPATH=$(shell go env GOPATH) GO111MODULE=off hack/update-codegen.sh

##@ Build

.PHONY: build
Expand Down

0 comments on commit b39166e

Please sign in to comment.