Skip to content

Commit b5d457b

Browse files
authored
Merge pull request #2836 from Nordix/lentzi90/k8s-v1.34
🌱 Bump e2e to use k8s v1.34.2
2 parents de0b2d0 + b004100 commit b5d457b

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
@@ -36,6 +36,7 @@ import (
3636
const (
3737
DefaultSSHKeyPairName = "cluster-api-provider-openstack-sigs-k8s-io"
3838
KubeContext = "KUBE_CONTEXT"
39+
KubernetesKindVersion = "KUBERNETES_KIND_VERSION"
3940
KubernetesVersion = "KUBERNETES_VERSION"
4041
CCMPath = "CCM"
4142
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
@@ -64,7 +64,7 @@ var _ = Describe("When testing clusterctl upgrades for CAPO (v0.11=>current) and
6464
InitWithControlPlaneProviders: []string{"kubeadm:" + capiRelease110},
6565
MgmtFlavor: shared.FlavorDefault,
6666
WorkloadFlavor: shared.FlavorCapiV1Beta1,
67-
InitWithKubernetesVersion: e2eCtx.E2EConfig.MustGetVariable(shared.KubernetesVersion),
67+
InitWithKubernetesVersion: e2eCtx.E2EConfig.MustGetVariable(shared.KubernetesKindVersion),
6868
InitWithRuntimeExtensionProviders: []string{"openstack-resource-controller:v1.0.2"},
6969
UseKindForManagementCluster: true,
7070
}
@@ -98,7 +98,7 @@ var _ = Describe("When testing clusterctl upgrades for CAPO (v0.12=>current) and
9898
InitWithControlPlaneProviders: []string{"kubeadm:" + capiRelease110},
9999
MgmtFlavor: shared.FlavorDefault,
100100
WorkloadFlavor: shared.FlavorCapiV1Beta1,
101-
InitWithKubernetesVersion: e2eCtx.E2EConfig.MustGetVariable(shared.KubernetesVersion),
101+
InitWithKubernetesVersion: e2eCtx.E2EConfig.MustGetVariable(shared.KubernetesKindVersion),
102102
InitWithRuntimeExtensionProviders: []string{"openstack-resource-controller:v1.0.2"},
103103
UseKindForManagementCluster: true,
104104
}
@@ -132,7 +132,7 @@ var _ = Describe("When testing clusterctl upgrades for CAPO (v0.13=>current) and
132132
InitWithControlPlaneProviders: []string{"kubeadm:" + capiRelease111},
133133
MgmtFlavor: shared.FlavorDefault,
134134
WorkloadFlavor: shared.FlavorDefault,
135-
InitWithKubernetesVersion: e2eCtx.E2EConfig.MustGetVariable(shared.KubernetesVersion),
135+
InitWithKubernetesVersion: e2eCtx.E2EConfig.MustGetVariable(shared.KubernetesKindVersion),
136136
InitWithRuntimeExtensionProviders: []string{"openstack-resource-controller:v1.0.2"},
137137
UseKindForManagementCluster: true,
138138
}

0 commit comments

Comments
 (0)