Skip to content

Commit

Permalink
Merge pull request #8030 from projectcalico/split-k8s-ver-var
Browse files Browse the repository at this point in the history
Split kindest/node version into a separate variable
  • Loading branch information
hjiawei authored Sep 19, 2023
2 parents caf3cb0 + 69ce1bc commit 6f0117b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions apiserver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ st:
check-copyright:
@../hack/check-copyright.sh

GITHUB_TEST_INTEGRATION_URI := https://raw.githubusercontent.com/kubernetes/kubernetes/$(KUBECTL_VERSION)/hack/lib
GITHUB_TEST_INTEGRATION_URI := https://raw.githubusercontent.com/kubernetes/kubernetes/$(K8S_VERSION)/hack/lib

hack-lib:
mkdir -p hack/lib/
Expand All @@ -175,7 +175,7 @@ run-kubernetes-server: run-k8s-controller-manager
--rm \
-v $(CURDIR):/manifests \
-v $(CERTS_PATH):/home/user/certs \
bitnami/kubectl:$(subst v,,$(KUBECTL_VERSION)) \
bitnami/kubectl:$(subst v,,$(K8S_VERSION)) \
--kubeconfig=/home/user/certs/kubeconfig \
apply -f /manifests/test/mock-node.yaml

Expand All @@ -186,7 +186,7 @@ run-kubernetes-server: run-k8s-controller-manager
--rm \
-v $(CURDIR):/manifests \
-v $(CERTS_PATH):/home/user/certs \
bitnami/kubectl:$(subst v,,$(KUBECTL_VERSION)) \
bitnami/kubectl:$(subst v,,$(K8S_VERSION)) \
--kubeconfig=/home/user/certs/kubeconfig \
apply -f /manifests/test/namespaces.yaml

Expand Down
2 changes: 1 addition & 1 deletion confd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ ut:


bin/kubectl:
curl -sSf -L --retry 5 https://storage.googleapis.com/kubernetes-release/release/$(KUBECTL_VERSION)/bin/linux/$(ARCH)/kubectl -o $@
curl -sSf -L --retry 5 https://storage.googleapis.com/kubernetes-release/release/$(K8S_VERSION)/bin/linux/$(ARCH)/kubectl -o $@
chmod +x $@

bin/bird bin/bird6:
Expand Down
2 changes: 1 addition & 1 deletion kube-controllers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ $(BINDIR)/check-status-linux-$(ARCH): $(SRC_FILES)
$(CALICO_BUILD) sh -c '$(GIT_CONFIG_SSH) go build $(BUILD_TAGS) -buildvcs=false -v -o $@ -ldflags "$(LDFLAGS)" ./cmd/check-status/'

$(BINDIR)/kubectl-$(ARCH):
wget https://storage.googleapis.com/kubernetes-release/release/$(KUBECTL_VERSION)/bin/linux/$(subst armv7,arm,$(ARCH))/kubectl -O $@
wget https://storage.googleapis.com/kubernetes-release/release/$(K8S_VERSION)/bin/linux/$(subst armv7,arm,$(ARCH))/kubectl -O $@
chmod +x $@

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion lib.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ $(REPO_ROOT)/.$(KIND_NAME).created: $(KUBECTL) $(KIND)
--config $(KIND_CONFIG) \
--kubeconfig $(KIND_KUBECONFIG) \
--name $(KIND_NAME) \
--image kindest/node:$(K8S_VERSION)
--image kindest/node:$(KINDEST_NODE_VERSION)

# Wait for controller manager to be running and healthy, then create Calico CRDs.
while ! KUBECONFIG=$(KIND_KUBECONFIG) $(KUBECTL) get serviceaccount default; do echo "Waiting for default serviceaccount to be created..."; sleep 2; done
Expand Down
9 changes: 5 additions & 4 deletions metadata.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
# The version of github.com/projectcalico/go-build to use.
GO_BUILD_VER = v0.89

# Version of Kubernetes to use for tests.
K8S_VERSION = v1.24.7
# This is used for bitnami/kubectl and kubectl binary release.
KUBECTL_VERSION = v1.24.14
# Version of Kubernetes to use for tests, bitnami/kubectl, and kubectl binary release.
K8S_VERSION=v1.26.8

# Version of various tools used in the build and tests.
COREDNS_VERSION=1.5.2
ETCD_VERSION=v3.5.1
# FIXME upgrading to kindest/node newer than v1.24.7 causes Node/kind-cluster and sig-network conformance
# tests to timeout or fail.
KINDEST_NODE_VERSION=v1.24.7
PROTOC_VER=v0.1
UBI_VERSION=8.7

Expand Down

0 comments on commit 6f0117b

Please sign in to comment.