Skip to content

Commit 98fcea7

Browse files
mircea-cosbucfealebenpae
authored andcommitted
Bump kind node version to the latest (#4139)
# Summary We didn't bump the kind node version previously. Our versioning policy is: * Use oldest supported libraries for k8s APIs in code * Use newest supported k8s version in kind tests To keep using the ECR mirror I had to run the following ``` >> docker pull kindest/node:v1.32.2@sha256:f226345927d7e348497136874b6d207e0b32cc52154ad8323129352923a3142f >> skopeo copy --preserve-digests --all docker://docker.io/kindest/node:v1.32.2 docker://268558157000.dkr.ecr.eu-west-1.amazonaws.com/docker-hub-mirrors/kindest/node:v1.32.2 ``` ## Proof of Work Hopefully all e2e tests pass ## Checklist - [ ] Have you linked a jira ticket and/or is the ticket in the title? - [ ] Have you checked whether your jira ticket required DOCSP changes? - [ ] Have you checked for release_note changes? ## Reminder (Please remove this when merging) - Please try to Approve or Reject Changes the PR, keep PRs in review as short as possible - Our Short Guide for PRs: [Link](https://docs.google.com/document/d/1T93KUtdvONq43vfTfUt8l92uo4e4SEEvFbIEKOxGr44/edit?tab=t.0) - Remember the following Communication Standards - use comment prefixes for clarity: * **blocking**: Must be addressed before approval. * **follow-up**: Can be addressed in a later PR or ticket. * **q**: Clarifying question. * **nit**: Non-blocking suggestions. * **note**: Side-note, non-actionable. Example: Praise * --> no prefix is considered a question
1 parent 358eef1 commit 98fcea7

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

scripts/dev/setup_kind_cluster.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ docker network create --subnet=172.18.0.0/16 kind || true
6868
# create registry container unless it already exists
6969
reg_name='kind-registry'
7070
reg_port='5000'
71+
kind_node_version='v1.32.2@sha256:f226345927d7e348497136874b6d207e0b32cc52154ad8323129352923a3142f'
7172
running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)"
7273

7374
max_retries=3
@@ -109,32 +110,32 @@ kind: Cluster
109110
apiVersion: kind.x-k8s.io/v1alpha4
110111
nodes:
111112
- role: control-plane
112-
image: ${registry}/kindest/node:v1.31.4@sha256:2cb39f7295fe7eafee0842b1052a599a4fb0f8bcf3f83d96c7f4864c357c6c30
113+
image: ${registry}/kindest/node:${kind_node_version}
113114
extraMounts:
114115
- containerPath: /var/lib/kubelet/config.json
115116
hostPath: ${HOME}/.docker/config.json
116117
- role: control-plane
117-
image: ${registry}/kindest/node:v1.31.4@sha256:2cb39f7295fe7eafee0842b1052a599a4fb0f8bcf3f83d96c7f4864c357c6c30
118+
image: ${registry}/kindest/node:${kind_node_version}
118119
extraMounts:
119120
- containerPath: /var/lib/kubelet/config.json
120121
hostPath: ${HOME}/.docker/config.json
121122
- role: control-plane
122-
image: ${registry}/kindest/node:v1.31.4@sha256:2cb39f7295fe7eafee0842b1052a599a4fb0f8bcf3f83d96c7f4864c357c6c30
123+
image: ${registry}/kindest/node:${kind_node_version}
123124
extraMounts:
124125
- containerPath: /var/lib/kubelet/config.json
125126
hostPath: ${HOME}/.docker/config.json
126127
- role: worker
127-
image: ${registry}/kindest/node:v1.31.4@sha256:2cb39f7295fe7eafee0842b1052a599a4fb0f8bcf3f83d96c7f4864c357c6c30
128+
image: ${registry}/kindest/node:${kind_node_version}
128129
extraMounts:
129130
- containerPath: /var/lib/kubelet/config.json
130131
hostPath: ${HOME}/.docker/config.json
131132
- role: worker
132-
image: ${registry}/kindest/node:v1.31.4@sha256:2cb39f7295fe7eafee0842b1052a599a4fb0f8bcf3f83d96c7f4864c357c6c30
133+
image: ${registry}/kindest/node:${kind_node_version}
133134
extraMounts:
134135
- containerPath: /var/lib/kubelet/config.json
135136
hostPath: ${HOME}/.docker/config.json
136137
- role: worker
137-
image: ${registry}/kindest/node:v1.31.4@sha256:2cb39f7295fe7eafee0842b1052a599a4fb0f8bcf3f83d96c7f4864c357c6c30
138+
image: ${registry}/kindest/node:${kind_node_version}
138139
extraMounts:
139140
- containerPath: /var/lib/kubelet/config.json
140141
hostPath: ${HOME}/.docker/config.json
@@ -158,7 +159,7 @@ kind: Cluster
158159
apiVersion: kind.x-k8s.io/v1alpha4
159160
nodes:
160161
- role: control-plane
161-
image: ${registry}/kindest/node:v1.30.4@sha256:976ea815844d5fa93be213437e3ff5754cd599b040946b5cca43ca45c2047114
162+
image: ${registry}/kindest/node:${kind_node_version}
162163
extraMounts:
163164
- containerPath: /var/lib/kubelet/config.json
164165
hostPath: ${HOME}/.docker/config.json

scripts/evergreen/setup_kind.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ source scripts/dev/set_env_context.sh
66
# Store the lowercase name of Operating System
77
os=$(uname | tr '[:upper:]' '[:lower:]')
88
# This should be changed when needed
9-
latest_version="v0.26.0"
9+
latest_version="v0.27.0"
1010

1111
mkdir -p "${PROJECT_DIR}/bin/"
1212
echo "Saving kind to ${PROJECT_DIR}/bin"

0 commit comments

Comments
 (0)