Skip to content

Commit

Permalink
Make generate: add code-generator execution
Browse files Browse the repository at this point in the history
Adding the execution of code-generator, so we get a fresh version of the
type safe clients when we change the API.

Also, it allows the generated code to be validated in CI.

Signed-off-by: Federico Paolinelli <[email protected]>
  • Loading branch information
fedepaol committed Jul 5, 2024
1 parent ca1bfa0 commit adc7daa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
.PHONY: generate
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
hack/update-codegen.sh

.PHONY: fmt
fmt: ## Run go fmt against code.
Expand Down

0 comments on commit adc7daa

Please sign in to comment.