Skip to content

Commit b004100

Browse files
committed
Bump e2e to use k8s v1.34.2
Since we use kind for the clusterctl upgrade tests, we need to use a kubernetes version that has a kind node image available also. I have added a separate variable for this. (We could also build the kind image but that takes time and resources.) Signed-off-by: Lennart Jern <[email protected]>
1 parent ee4be02 commit b004100

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

test/e2e/data/e2e_conf.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,11 @@ providers:
208208
variables:
209209
# used to ensure we deploy to the correct management cluster
210210
KUBE_CONTEXT: "kind-capo-e2e"
211-
KUBERNETES_VERSION: "v1.33.1"
212-
KUBERNETES_VERSION_UPGRADE_FROM: "v1.32.5"
213-
KUBERNETES_VERSION_UPGRADE_TO: "v1.33.1"
211+
# Pick a version that has a kind node image available. This is used in clusterctl upgrade tests.
212+
KUBERNETES_KIND_VERSION: "v1.34.0"
213+
KUBERNETES_VERSION: "v1.34.2"
214+
KUBERNETES_VERSION_UPGRADE_FROM: "v1.33.1"
215+
KUBERNETES_VERSION_UPGRADE_TO: "v1.34.2"
214216
# NOTE: To see default images run kubeadm config images list (optionally with --kubernetes-version=vX.Y.Z)
215217
ETCD_VERSION_UPGRADE_TO: "3.5.21-0"
216218
COREDNS_VERSION_UPGRADE_TO: "v1.12.0"
@@ -235,10 +237,10 @@ variables:
235237
OPENSTACK_DNS_NAMESERVERS: "8.8.8.8"
236238
OPENSTACK_FAILURE_DOMAIN: "testaz1"
237239
OPENSTACK_FAILURE_DOMAIN_ALT: "testaz2"
238-
OPENSTACK_IMAGE_NAME: "ubuntu-2404-kube-v1.33.1"
239-
OPENSTACK_IMAGE_URL: https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/ubuntu/ubuntu-2404-kube-v1.33.1
240-
OPENSTACK_IMAGE_NAME_UPGRADE_FROM: "ubuntu-2404-kube-v1.32.5"
241-
OPENSTACK_IMAGE_URL_UPGRADE_FROM: https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/ubuntu/ubuntu-2404-kube-v1.32.5
240+
OPENSTACK_IMAGE_NAME: "ubuntu-2404-kube-latest"
241+
OPENSTACK_IMAGE_URL: https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/ubuntu/ubuntu-2404-kube-v1.34.2
242+
OPENSTACK_IMAGE_NAME_UPGRADE_FROM: "ubuntu-2404-kube-previous"
243+
OPENSTACK_IMAGE_URL_UPGRADE_FROM: https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/ubuntu/ubuntu-2404-kube-v1.33.1
242244
OPENSTACK_NODE_MACHINE_FLAVOR: "m1.small"
243245
OPENSTACK_SSH_KEY_NAME: "cluster-api-provider-openstack-sigs-k8s-io"
244246
# The default external network created by devstack
@@ -252,8 +254,8 @@ variables:
252254
CLUSTER_TOPOLOGY: "true"
253255
EXP_KUBEADM_BOOTSTRAP_FORMAT_IGNITION: "true"
254256
# The Flatcar image produced by the image-builder
255-
OPENSTACK_FLATCAR_IMAGE_NAME: "flatcar-stable-4152.2.3-kube-v1.33.1"
256-
OPENSTACK_FLATCAR_IMAGE_URL: "https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/flatcar/flatcar-stable-4152.2.3-kube-v1.33.1"
257+
OPENSTACK_FLATCAR_IMAGE_NAME: "flatcar-stable"
258+
OPENSTACK_FLATCAR_IMAGE_URL: "https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/flatcar/flatcar-stable-4459.2.0-kube-v1.34.2"
257259
# A plain Flatcar from the Flatcar releases server
258260
FLATCAR_IMAGE_NAME: "flatcar_production_openstack_image"
259261
FLATCAR_IMAGE_URL: https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_openstack_image.img

test/e2e/shared/defaults.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import (
3737
const (
3838
DefaultSSHKeyPairName = "cluster-api-provider-openstack-sigs-k8s-io"
3939
KubeContext = "KUBE_CONTEXT"
40+
KubernetesKindVersion = "KUBERNETES_KIND_VERSION"
4041
KubernetesVersion = "KUBERNETES_VERSION"
4142
CCMPath = "CCM"
4243
CCMResources = "CCM_RESOURCES"

test/e2e/suites/e2e/clusterctl_upgrade_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var _ = Describe("When testing clusterctl upgrades for CAPO (v0.11=>current) and
6565
InitWithControlPlaneProviders: []string{"kubeadm:" + capiRelease110},
6666
MgmtFlavor: shared.FlavorDefault,
6767
WorkloadFlavor: shared.FlavorCapiV1Beta1,
68-
InitWithKubernetesVersion: e2eCtx.E2EConfig.MustGetVariable(shared.KubernetesVersion),
68+
InitWithKubernetesVersion: e2eCtx.E2EConfig.MustGetVariable(shared.KubernetesKindVersion),
6969
InitWithRuntimeExtensionProviders: []string{"openstack-resource-controller:v1.0.2"},
7070
UseKindForManagementCluster: true,
7171
}
@@ -99,7 +99,7 @@ var _ = Describe("When testing clusterctl upgrades for CAPO (v0.12=>current) and
9999
InitWithControlPlaneProviders: []string{"kubeadm:" + capiRelease110},
100100
MgmtFlavor: shared.FlavorDefault,
101101
WorkloadFlavor: shared.FlavorCapiV1Beta1,
102-
InitWithKubernetesVersion: e2eCtx.E2EConfig.MustGetVariable(shared.KubernetesVersion),
102+
InitWithKubernetesVersion: e2eCtx.E2EConfig.MustGetVariable(shared.KubernetesKindVersion),
103103
InitWithRuntimeExtensionProviders: []string{"openstack-resource-controller:v1.0.2"},
104104
UseKindForManagementCluster: true,
105105
}
@@ -133,7 +133,7 @@ var _ = Describe("When testing clusterctl upgrades for CAPO (v0.13=>current) and
133133
InitWithControlPlaneProviders: []string{"kubeadm:" + capiRelease111},
134134
MgmtFlavor: shared.FlavorDefault,
135135
WorkloadFlavor: shared.FlavorDefault,
136-
InitWithKubernetesVersion: e2eCtx.E2EConfig.MustGetVariable(shared.KubernetesVersion),
136+
InitWithKubernetesVersion: e2eCtx.E2EConfig.MustGetVariable(shared.KubernetesKindVersion),
137137
InitWithRuntimeExtensionProviders: []string{"openstack-resource-controller:v1.0.2"},
138138
UseKindForManagementCluster: true,
139139
}

0 commit comments

Comments
 (0)