Skip to content

Commit

Permalink
go install instead of get-tool.mk (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatousJobanek authored Mar 14, 2024
1 parent 1a125b6 commit 3370931
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 31 deletions.
10 changes: 10 additions & 0 deletions make/generate.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ MEMBER_CLUSTER_CRDS:=useraccounts nstemplatesets memberstatuses idlers toolchain

PATH_TO_CRD_BASES=config/crd/bases

PROJECT_DIR := $(shell pwd)
# openapi-gen requires the GOPATH env var be set and the codebase be present within it.
# Let's not require $GOPATH be set up in the user's environment and the checkout be
# placed in it.
Expand Down Expand Up @@ -114,3 +115,12 @@ dispatch-crds: prepare-host-operator prepare-member-operator
.PHONY: copy-reg-service-template
copy-reg-service-template:
cp ../registration-service/deploy/registration-service.yaml ../host-operator/deploy/registration-service/registration-service.yaml


CONTROLLER_GEN = $(PROJECT_DIR)/bin/controller-gen
controller-gen: ## Download controller-gen locally if necessary.
GOBIN=$(PROJECT_DIR)/bin go install sigs.k8s.io/controller-tools/cmd/controller-gen

OPENAPI_GEN = $(PROJECT_DIR)/bin/openapi-gen
openapi-gen: ## Download openapi-gen locally if necessary.
GOBIN=$(PROJECT_DIR)/bin go install k8s.io/kube-openapi/cmd/openapi-gen
31 changes: 0 additions & 31 deletions make/get-tool.mk

This file was deleted.

0 comments on commit 3370931

Please sign in to comment.