Skip to content

Commit

Permalink
[ISSUE-1117] Adjust makefile to generate/clean smart API (#1118)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrzej Zukowski <[email protected]>
  • Loading branch information
Andrzej-Zukowski authored Mar 13, 2024
1 parent 2c50819 commit 8225fcf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ clean-node-controller:
clean-proto:
rm -rf ./api/generated/v1/*

clean-smart:
rm -rf ./api/smart/generated/*

### API targets
install-protoc:
mkdir -p proto_3.11.0
Expand Down Expand Up @@ -123,7 +126,10 @@ generate-baremetal-crds: install-controller-gen
controller-gen $(CRD_OPTIONS) paths=api/v1/nodecrd/node_types.go paths=api/v1/nodecrd/groupversion_info.go output:crd:dir=$(CSI_CHART_CRDS_PATH)
controller-gen $(CRD_OPTIONS) paths=api/v1/storagegroupcrd/storagegroup_types.go paths=api/v1/storagegroupcrd/groupversion_info.go output:crd:dir=$(CSI_CHART_CRDS_PATH)

generate-api: compile-proto generate-baremetal-crds generate-deepcopy
generate-smart:
go generate ./api/smart/...

generate-api: compile-proto generate-baremetal-crds generate-deepcopy generate-smart

# Used for UT. Need to regenerate after updating k8s API version
generate-mocks: install-mockery
Expand Down

0 comments on commit 8225fcf

Please sign in to comment.