@@ -95,6 +95,10 @@ CHAMBER_BIN := $(LOCAL_BIN_PATH)/chamber
9595$(CHAMBER_BIN ) : $(TOOLS_DIR ) /go.mod $(TOOLS_DIR ) /go.sum
9696 @cd $(TOOLS_DIR ) && GOBIN=${LOCAL_BIN_PATH} $(GO ) install github.com/segmentio/chamber/v2
9797
98+ DEEPCOPY_GEN_BIN := $(LOCAL_BIN_PATH ) /deepcopy-gen
99+ $(DEEPCOPY_GEN_BIN ) : $(TOOLS_DIR ) /go.mod $(TOOLS_DIR ) /go.sum
100+ @cd $(TOOLS_DIR ) && GOBIN=${LOCAL_BIN_PATH} $(GO ) install k8s.io/code-generator/cmd/deepcopy-gen
101+
98102GINKGO_BIN := $(LOCAL_BIN_PATH ) /ginkgo
99103$(GINKGO_BIN ) : go.mod go.sum
100104 @GOBIN=${LOCAL_BIN_PATH} $(GO ) install github.com/onsi/ginkgo/v2/ginkgo
@@ -399,7 +403,7 @@ test/e2e/cleanup:
399403.PHONY : test/e2e/cleanup
400404
401405# generate files
402- generate : $(MOQ_BIN ) openapi/generate
406+ generate : $(MOQ_BIN ) openapi/generate deepcopy-gen/generate
403407 $(GO ) generate ./...
404408.PHONY : generate
405409
@@ -450,6 +454,13 @@ openapi/generate/emailsender: openapi-generator
450454 $(GOFMT ) -w emailsender/pkg/client/openapi
451455.PHONY : openapi/generate/emailsender
452456
457+ .PHONY : deepcopy-gen/generate
458+ deepcopy-gen/generate : $(DEEPCOPY_GEN_BIN )
459+ @$(DEEPCOPY_GEN_BIN ) \
460+ --output-file zz_generated.deepcopy.go \
461+ --go-header-file /dev/null \
462+ github.com/stackrox/acs-fleet-manager/pkg/argocd/apis/application/v1alpha1
463+
453464# fail if formatting is required
454465code/check :
455466 @if ! [ -z " $$ (find . -path './vendor' -prune -o -type f -name '*.go' -print0 | xargs -0 $( GOFMT) -l)" ]; then \
0 commit comments