Skip to content

Commit

Permalink
Download kind in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
meln5674 committed Aug 31, 2023
1 parent 52fee30 commit 67a424c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,19 @@ e2e: deps

HELM_HOG_VERSION ?= 3af9ec621dcc359e38e966a255571a39beefe624


KIND_MIRROR ?= https://github.com/kubernetes-sigs/kind/releases/download
KIND_VERSION ?= v0.20.0
KIND_URL ?= $(KIND_MIRROR)/$(KIND_VERSION)/kind-$(shell go env GOOS)-$(shell go env GOARCH)

.PHONY: deps
deps:
mkdir -p bin
go mod download
grep ginkgo go.mod | awk '{ print $$1 "/ginkgo@" $$2 }' | GOBIN=$$PWD/bin xargs go install
go install github.com/meln5674/helm-hog@$(HELM_HOG_VERSION)
curl -vfL $(KIND_URL) > bin/kind
chmod +x bin/kind

bin/mlflow-oidc-proxy:
go build -o bin/mlflow-oidc-proxy main.go
2 changes: 1 addition & 1 deletion e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ var _ = BeforeSuite(func(ctx context.Context) {
var (
cluster = gingk8s.KindCluster{
Name: "mlflow-oidc-proxy",
KindCommand: gingk8s.DefaultKind,
KindCommand: &gingk8s.KindCommand{Command: []string{"bin/kind"}},
TempDir: "integration-test",
ConfigFilePath: "integration-test/kind.config",
ConfigFileTemplatePath: "integration-test/kind.config.template",
Expand Down

0 comments on commit 67a424c

Please sign in to comment.