Skip to content

Commit d738fc6

Browse files
authored
cluster: add kind 0.31 support (#393)
Signed-off-by: Nick Santos <[email protected]>
1 parent 1c7327e commit d738fc6

File tree

8 files changed

+17
-9
lines changed

8 files changed

+17
-9
lines changed

.circleci/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN curl -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubec
3535
&& install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
3636

3737
# install Kind
38-
ENV KIND_VERSION=v0.30.0
38+
ENV KIND_VERSION=v0.31.0
3939
RUN set -exu \
4040
&& curl -fLo ./kind-linux-amd64 "https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-amd64" \
4141
&& chmod +x ./kind-linux-amd64 \

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
only_for_branches: main
1717
e2e-remote-docker:
1818
docker:
19-
- image: "docker/tilt-ctlptl-ci@sha256:52badf42e6a79490439af2f319626f982526bb92956efaee4f0dd0824e9062d5"
19+
- image: "docker/tilt-ctlptl-ci@sha256:ec301d936d736e5151cc138de734ead59685c6b2e1cb4b2a81d077c294a0a073"
2020
steps:
2121
- checkout
2222
- setup_remote_docker
@@ -41,7 +41,7 @@ jobs:
4141
sudo mv ./minikube-linux-amd64 /usr/local/bin/minikube
4242
- run: |
4343
set -ex
44-
export KIND_VERSION=v0.30.0
44+
export KIND_VERSION=v0.31.0
4545
curl -fLo ./kind-linux-amd64 "https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-amd64"
4646
chmod +x ./kind-linux-amd64
4747
sudo mv ./kind-linux-amd64 /usr/local/bin/kind

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ require (
3030
k8s.io/cli-runtime v0.33.1
3131
k8s.io/client-go v0.33.1
3232
k8s.io/klog/v2 v2.130.1
33-
sigs.k8s.io/kind v0.30.0
33+
sigs.k8s.io/kind v0.31.0
3434
)
3535

3636
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,8 @@ k8s.io/utils v0.0.0-20250502105355-0f33e8f1c979 h1:jgJW5IePPXLGB8e/1wvd0Ich9QE97
665665
k8s.io/utils v0.0.0-20250502105355-0f33e8f1c979/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
666666
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 h1:gBQPwqORJ8d8/YNZWEjoZs7npUVDpVXUUOFfW6CgAqE=
667667
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg=
668-
sigs.k8s.io/kind v0.30.0 h1:2Xi1KFEfSMm0XDcvKnUt15ZfgRPCT0OnCBbpgh8DztY=
669-
sigs.k8s.io/kind v0.30.0/go.mod h1:FSqriGaoTPruiXWfRnUXNykF8r2t+fHtK0P0m1AbGF8=
668+
sigs.k8s.io/kind v0.31.0 h1:UcT4nzm+YM7YEbqiAKECk+b6dsvc/HRZZu9U0FolL1g=
669+
sigs.k8s.io/kind v0.31.0/go.mod h1:FSqriGaoTPruiXWfRnUXNykF8r2t+fHtK0P0m1AbGF8=
670670
sigs.k8s.io/kustomize v2.0.3+incompatible/go.mod h1:MkjgH3RdOWrievjo6c9T245dYlB5QeXV4WCbnt/PEpU=
671671
sigs.k8s.io/kustomize/api v0.19.0 h1:F+2HB2mU1MSiR9Hp1NEgoU2q9ItNOaBJl0I4Dlus5SQ=
672672
sigs.k8s.io/kustomize/api v0.19.0/go.mod h1:/BbwnivGVcBh1r+8m3tH1VNxJmHSk1PzP5fkP6lbL1o=

hack/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RUN curl -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/${TARGETARC
3737
&& install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
3838

3939
# Install Kind
40-
ENV KIND_VERSION=v0.30.0
40+
ENV KIND_VERSION=v0.31.0
4141
RUN set -exu \
4242
&& KIND_URL="https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-$TARGETARCH" \
4343
&& curl --silent --show-error --location --fail --retry 3 --output ./kind-linux-$TARGETARCH "$KIND_URL" \

internal/dctr/.#run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nick@dopey.7367:1766021304

pkg/cluster/admin_kind.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,13 @@ func (a *kindAdmin) getKindVersion(ctx context.Context) (string, error) {
367367
// This table must be built up manually from the Kind release notes each
368368
// time a new Kind version is released :\
369369
var kindK8sNodeTable = map[string]map[string]string{
370+
"v0.31.0": {
371+
"1.35": "kindest/node:v1.35.0@sha256:452d707d4862f52530247495d180205e029056831160e22870e37e3f6c1ac31f",
372+
"1.34": "kindest/node:v1.34.3@sha256:08497ee19eace7b4b5348db5c6a1591d7752b164530a36f855cb0f2bdcbadd48",
373+
"1.33": "kindest/node:v1.33.7@sha256:d26ef333bdb2cbe9862a0f7c3803ecc7b4303d8cea8e814b481b09949d353040",
374+
"1.32": "kindest/node:v1.32.11@sha256:5fc52d52a7b9574015299724bd68f183702956aa4a2116ae75a63cb574b35af8",
375+
"1.31": "kindest/node:v1.31.14@sha256:6f86cf509dbb42767b6e79debc3f2c32e4ee01386f0489b3b2be24b0a55aac2b",
376+
},
370377
"v0.30.0": {
371378
"1.34": "kindest/node:v1.34.0@sha256:7416a61b42b1662ca6ca89f02028ac133a309a2a30ba309614e8ec94d976dc5a",
372379
"1.33": "kindest/node:v1.33.4@sha256:25a6018e48dfcaee478f4a59af81157a437f15e6e140bf103f85a2e7cd0cbbf2",

test/kind/e2e.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ k8sVersion=$(ctlptl get cluster "$CLUSTER_NAME" -o go-template --template='{{.st
5353

5454
ctlptl delete -f cluster.yaml
5555

56-
if [[ "$k8sVersion" != "v1.34.0" ]]; then
57-
echo "Expected kubernetes version v1.34.0 but got $k8sVersion"
56+
if [[ "$k8sVersion" != "v1.34.3" ]]; then
57+
echo "Expected kubernetes version v1.34.3 but got $k8sVersion"
5858
exit 1
5959
fi
6060

0 commit comments

Comments
 (0)