Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 0a1811e

Browse files
committed
✨ Update binary verisons
Add comments about how to find versions to use Signed-off-by: Chris Privitere <[email protected]>
1 parent c7f72ad commit 0a1811e

File tree

1 file changed

+31
-23
lines changed

1 file changed

+31
-23
lines changed

Makefile

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -56,38 +56,46 @@ else
5656
export GOPATH := $(shell go env GOPATH)
5757
endif
5858

59-
# Binaries.
59+
## Binaries.
60+
61+
# Sync to controller-tools version in https://github.com/kubernetes-sigs/cluster-api/blob/v{VERSION}/hack/tools/go.mod
6062
CONTROLLER_GEN_VER := v0.8.0
6163
CONTROLLER_GEN_BIN := controller-gen
6264
CONTROLLER_GEN := $(TOOLS_BIN_DIR)/$(CONTROLLER_GEN_BIN)-$(CONTROLLER_GEN_VER)
6365

64-
CONVERSION_GEN_VER := v0.23.3
66+
# Sync to k8s.io/* verisons in https://github.com/kubernetes-sigs/cluster-api/blob/v{VERSION}/go.mod
67+
CONVERSION_GEN_VER := v0.23.5
6568
CONVERSION_GEN_BIN := conversion-gen
6669
CONVERSION_GEN := $(TOOLS_BIN_DIR)/$(CONVERSION_GEN_BIN)-$(CONVERSION_GEN_VER)
6770

71+
# Sync to github.com/drone/envsubst/v2 in https://github.com/kubernetes-sigs/cluster-api/blob/v{VERSION}/go.mod
6872
ENVSUBST_VER := v2.0.0-20210730161058-179042472c46
6973
ENVSUBST_BIN := envsubst
7074
ENVSUBST := $(TOOLS_BIN_DIR)/$(ENVSUBST_BIN)
7175

72-
GOLANGCI_LINT_VER := v1.46.2
76+
# Bump as necessary/desired to latest that supports our version of go at https://github.com/golangci/golangci-lint/releases
77+
GOLANGCI_LINT_VER := v1.47.3
7378
GOLANGCI_LINT_BIN := golangci-lint
7479
GOLANGCI_LINT := $(TOOLS_BIN_DIR)/$(GOLANGCI_LINT_BIN)-$(GOLANGCI_LINT_VER)
7580

81+
# Keep at 4.0.4 until we figure out how to get later verisons to not mangle the calico yamls
7682
KUSTOMIZE_VER := v4.0.4
7783
KUSTOMIZE_BIN := kustomize
7884
KUSTOMIZE := $(TOOLS_BIN_DIR)/$(KUSTOMIZE_BIN)-$(KUSTOMIZE_VER)
7985

86+
# Sync to github.com/onsi/ginkgo verison in https://github.com/kubernetes-sigs/cluster-api/blob/v{VERSION}/go.mod
8087
GINKGO_VER := v1.16.5
8188
GINKGO_BIN := ginkgo
8289
GINKGO := $(TOOLS_BIN_DIR)/$(GINKGO_BIN)-$(GINKGO_VER)
8390

84-
KUBECTL_VER := v1.21.2
85-
KUBECTL_BIN := kubectl
86-
KUBECTL := $(TOOLS_BIN_DIR)/$(KUBECTL_BIN)-$(KUBECTL_VER)
91+
# Sync to version that matches k8s.io/* verisons in https://github.com/kubernetes-sigs/cluster-api/blob/v{VERSION}/go.mod
92+
#KUBECTL_VER := v1.21.2
93+
#KUBECTL_BIN := kubectl
94+
#KUBECTL := $(TOOLS_BIN_DIR)/$(KUBECTL_BIN)-$(KUBECTL_VER)
8795

88-
KIND_VER := v0.11.1
89-
KIND_BIN := kind
90-
KIND := $(TOOLS_BIN_DIR)/$(KIND_BIN)-$(KIND_VER)
96+
#KIND_VER := v0.11.1
97+
#KIND_BIN := kind
98+
#KIND := $(TOOLS_BIN_DIR)/$(KIND_BIN)-$(KIND_VER)
9199

92100
TIMEOUT := $(shell command -v timeout || command -v gtimeout)
93101

@@ -155,7 +163,7 @@ $(E2E_CONF_FILE): $(ENVSUBST) $(E2E_CONF_FILE_SOURCE)
155163
$(ENVSUBST) < $(E2E_CONF_FILE_SOURCE) > $(E2E_CONF_FILE)
156164

157165
.PHONY: run-e2e-tests
158-
run-e2e-tests: $(KUBECTL) $(KUSTOMIZE) $(KIND) $(GINKGO) $(E2E_CONF_FILE) e2e-test-templates $(if $(SKIP_IMAGE_BUILD),,e2e-image) ## Run the e2e tests
166+
run-e2e-tests: $(KUSTOMIZE) $(GINKGO) $(E2E_CONF_FILE) e2e-test-templates $(if $(SKIP_IMAGE_BUILD),,e2e-image) ## Run the e2e tests
159167
$(MAKE) set-manifest-image MANIFEST_IMG=$(REGISTRY)/$(IMAGE_NAME) MANIFEST_TAG=$(TAG)
160168
$(MAKE) set-manifest-pull-policy PULL_POLICY=IfNotPresent
161169
cd test/e2e; time $(GINKGO) -v -trace -progress -v -tags=e2e \
@@ -237,19 +245,19 @@ $(CONVERSION_GEN): ## Build conversion-gen.
237245
$(GINKGO): ## Build ginkgo.
238246
GOBIN=$(TOOLS_BIN_DIR) $(GO_INSTALL) github.com/onsi/ginkgo/ginkgo $(GINKGO_BIN) $(GINKGO_VER)
239247

240-
$(KUBECTL): ## Build kubectl
241-
mkdir -p $(TOOLS_BIN_DIR)
242-
rm -f "$(KUBECTL)*"
243-
curl --retry $(CURL_RETRIES) -fsL https://dl.k8s.io/release/$(KUBECTL_VER)/bin/$(GOOS)/$(GOARCH)/kubectl -o $(KUBECTL)
244-
ln -sf "$(KUBECTL)" "$(TOOLS_BIN_DIR)/$(KUBECTL_BIN)"
245-
chmod +x "$(TOOLS_BIN_DIR)/$(KUBECTL_BIN)" "$(KUBECTL)"
246-
247-
$(KIND): ## Build kind
248-
mkdir -p $(TOOLS_BIN_DIR)
249-
rm -f "$(KIND)*"
250-
curl --retry $(CURL_RETRIES) -fsL https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VER}/kind-${GOOS}-${GOARCH} -o ${KIND}
251-
ln -sf "$(KIND)" "$(TOOLS_BIN_DIR)/$(KIND_BIN)"
252-
chmod +x "$(TOOLS_BIN_DIR)/$(KIND_BIN)" "$(KIND)"
248+
#$(KUBECTL): ## Build kubectl
249+
# mkdir -p $(TOOLS_BIN_DIR)
250+
# rm -f "$(KUBECTL)*"
251+
# curl --retry $(CURL_RETRIES) -fsL https://dl.k8s.io/release/$(KUBECTL_VER)/bin/$(GOOS)/$(GOARCH)/kubectl -o $(KUBECTL)
252+
# ln -sf "$(KUBECTL)" "$(TOOLS_BIN_DIR)/$(KUBECTL_BIN)"
253+
# chmod +x "$(TOOLS_BIN_DIR)/$(KUBECTL_BIN)" "$(KUBECTL)"
254+
255+
#$(KIND): ## Build kind
256+
# mkdir -p $(TOOLS_BIN_DIR)
257+
# rm -f "$(KIND)*"
258+
# curl --retry $(CURL_RETRIES) -fsL https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VER}/kind-${GOOS}-${GOARCH} -o ${KIND}
259+
# ln -sf "$(KIND)" "$(TOOLS_BIN_DIR)/$(KIND_BIN)"
260+
# chmod +x "$(TOOLS_BIN_DIR)/$(KIND_BIN)" "$(KIND)"
253261

254262
## --------------------------------------
255263
## Linting

0 commit comments

Comments
 (0)