Skip to content

Commit

Permalink
Installing kustomize dependency for Etcd-druid (#541)
Browse files Browse the repository at this point in the history
* Installing kustomize Etcd-druid dependency
- Removed GINKGO target from tools.mk

* Remove whitespace
  • Loading branch information
seshachalam-yv authored Mar 10, 2023
1 parent 080f0c7 commit f9ac6e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ install: manifests

# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
.PHONY: deploy
deploy: manifests
deploy: manifests $(KUSTOMIZE)
kubectl apply -f config/crd/bases
kustomize build config/default | kubectl apply -f -

Expand Down
9 changes: 5 additions & 4 deletions hack/tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
# limitations under the License.

TOOLS_BIN_DIR := $(TOOLS_DIR)/bin
GINKGO := $(TOOLS_BIN_DIR)/ginkgo
SKAFFOLD := $(TOOLS_BIN_DIR)/skaffold
GO_ADD_LICENSE := $(TOOLS_BIN_DIR)/addlicense
KUSTOMIZE := $(TOOLS_BIN_DIR)/kustomize

# default tool versions
SKAFFOLD_VERSION ?= v1.38.0
GO_ADD_LICENSE_VERSION ?= latest
KUSTOMIZE_VERSION ?= v5.0.0

export TOOLS_BIN_DIR := $(TOOLS_BIN_DIR)
export PATH := $(abspath $(TOOLS_BIN_DIR)):$(PATH)
Expand All @@ -28,8 +29,8 @@ export PATH := $(abspath $(TOOLS_BIN_DIR)):$(PATH)
# Tools #
#########################################

$(GINKGO): go.mod
go build -o $(GINKGO) github.com/onsi/ginkgo/v2/ginkgo

$(GO_ADD_LICENSE):
GOBIN=$(abspath $(TOOLS_BIN_DIR)) go install github.com/google/addlicense@$(GO_ADD_LICENSE_VERSION)

$(KUSTOMIZE):
@test -s $(TOOLS_BIN_DIR)/kustomize || GOBIN=$(abspath $(TOOLS_BIN_DIR)) go install sigs.k8s.io/kustomize/kustomize/v5@${KUSTOMIZE_VERSION}

0 comments on commit f9ac6e1

Please sign in to comment.