Skip to content

Commit be5ee0d

Browse files
authored
Merge pull request kubernetes-sigs#10922 from chrischdi/pr-bump-capd-k8s-v1-31-0-beta-0
✨ Bump Kubernetes version used for testing to v1.31.0-beta.0
2 parents aba97ee + f36777c commit be5ee0d

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

test/e2e/config/docker.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,12 @@ variables:
353353
# allowing the same e2e config file to be re-used in different Prow jobs e.g. each one with a K8s version permutation.
354354
# The following Kubernetes versions should be the latest versions with already published kindest/node images.
355355
# This avoids building node images in the default case which improves the test duration significantly.
356-
KUBERNETES_VERSION_MANAGEMENT: "v1.30.0"
357-
KUBERNETES_VERSION: "v1.30.0"
358-
KUBERNETES_VERSION_UPGRADE_FROM: "v1.29.4"
359-
KUBERNETES_VERSION_UPGRADE_TO: "v1.30.0"
356+
KUBERNETES_VERSION_MANAGEMENT: "v1.31.0-beta.0"
357+
KUBERNETES_VERSION: "v1.31.0-beta.0"
358+
KUBERNETES_VERSION_UPGRADE_FROM: "v1.30.2"
359+
KUBERNETES_VERSION_UPGRADE_TO: "v1.31.0-beta.0"
360360
KUBERNETES_VERSION_LATEST_CI: "ci/latest-1.31"
361-
ETCD_VERSION_UPGRADE_TO: "3.5.12-0"
361+
ETCD_VERSION_UPGRADE_TO: "3.5.14-0"
362362
COREDNS_VERSION_UPGRADE_TO: "v1.11.1"
363363
DOCKER_SERVICE_DOMAIN: "cluster.local"
364364
IP_FAMILY: "dual"

test/framework/bootstrap/kind_util.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"os"
2222
"path/filepath"
2323

24+
"github.com/blang/semver/v4"
2425
. "github.com/onsi/gomega"
2526
"github.com/pkg/errors"
2627
kindv1 "sigs.k8s.io/kind/pkg/apis/config/v1alpha4"
@@ -32,7 +33,6 @@ import (
3233
"sigs.k8s.io/cluster-api/test/framework/internal/log"
3334
"sigs.k8s.io/cluster-api/test/infrastructure/container"
3435
kindmapper "sigs.k8s.io/cluster-api/test/infrastructure/kind"
35-
"sigs.k8s.io/cluster-api/util/version"
3636
)
3737

3838
// CreateKindBootstrapClusterAndLoadImagesInput is the input for CreateKindBootstrapClusterAndLoadImages.
@@ -68,10 +68,11 @@ func CreateKindBootstrapClusterAndLoadImages(ctx context.Context, input CreateKi
6868

6969
options := []KindClusterOption{}
7070
if input.KubernetesVersion != "" {
71-
semVer, err := version.ParseMajorMinorPatchTolerant(input.KubernetesVersion)
71+
semVer, err := semver.ParseTolerant(input.KubernetesVersion)
7272
if err != nil {
7373
Expect(err).ToNot(HaveOccurred(), "could not parse KubernetesVersion version")
7474
}
75+
7576
kindMapping := kindmapper.GetMapping(semVer, "")
7677

7778
options = append(options, WithNodeImage(kindMapping.Image))

test/infrastructure/docker/examples/machine-pool.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ metadata:
3535
namespace: default
3636
spec:
3737
replicas: 1
38-
version: v1.30.0
38+
version: v1.31.0-beta.0
3939
machineTemplate:
4040
infrastructureRef:
4141
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
@@ -77,7 +77,7 @@ spec:
7777
replicas: 2
7878
template:
7979
spec:
80-
version: v1.30.0
80+
version: v1.31.0-beta.0
8181
clusterName: my-cluster
8282
bootstrap:
8383
configRef:

test/infrastructure/docker/examples/simple-cluster-ipv6.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ metadata:
3535
namespace: default
3636
spec:
3737
replicas: 1
38-
version: v1.30.0
38+
version: v1.31.0-beta.0
3939
machineTemplate:
4040
infrastructureRef:
4141
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
@@ -87,7 +87,7 @@ spec:
8787
cluster.x-k8s.io/cluster-name: my-cluster
8888
template:
8989
spec:
90-
version: v1.30.0
90+
version: v1.31.0-beta.0
9191
clusterName: my-cluster
9292
bootstrap:
9393
configRef:

test/infrastructure/docker/examples/simple-cluster-without-kcp.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ metadata:
3232
name: controlplane-0
3333
namespace: default
3434
spec:
35-
version: v1.30.0
35+
version: v1.31.0-beta.0
3636
clusterName: my-cluster
3737
bootstrap:
3838
configRef:
@@ -76,7 +76,7 @@ spec:
7676
cluster.x-k8s.io/cluster-name: my-cluster
7777
template:
7878
spec:
79-
version: v1.30.0
79+
version: v1.31.0-beta.0
8080
clusterName: my-cluster
8181
bootstrap:
8282
configRef:

test/infrastructure/docker/examples/simple-cluster.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ metadata:
3535
namespace: default
3636
spec:
3737
replicas: 1
38-
version: v1.30.0
38+
version: v1.31.0-beta.0
3939
machineTemplate:
4040
infrastructureRef:
4141
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
@@ -80,7 +80,7 @@ spec:
8080
cluster.x-k8s.io/cluster-name: my-cluster
8181
template:
8282
spec:
83-
version: v1.30.0
83+
version: v1.31.0-beta.0
8484
clusterName: my-cluster
8585
bootstrap:
8686
configRef:

0 commit comments

Comments
 (0)