Skip to content

Commit bf13ebd

Browse files
committed
Use k8s v1.28 in tests
Bump Kubernetes to v1.28.2 for e2e tests and bump envtest Kubernetes version to v1.28.0. Also removes the now unused USE_CI_ARTIFACTS environment variable that was set in some places.
1 parent d4baeb1 commit bf13ebd

File tree

8 files changed

+12
-19
lines changed

8 files changed

+12
-19
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ RELEASE_NOTES := $(TOOLS_BIN_DIR)/release-notes
5454
SETUP_ENVTEST := $(TOOLS_BIN_DIR)/setup-envtest
5555

5656
# Kubebuilder
57-
export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.25.0
57+
export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.28.0
5858
export KUBEBUILDER_CONTROLPLANE_START_TIMEOUT ?= 60s
5959
export KUBEBUILDER_CONTROLPLANE_STOP_TIMEOUT ?= 60s
6060

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ This provider's versions are compatible with the following versions of Cluster A
4848

4949
This provider's versions are able to install and manage the following versions of Kubernetes:
5050

51-
| | v1.22 | v1.23 | v1.24 | v1.25 | v1.26 | v1.27 |
52-
|------------------------------------| ----- | ----- | ----- | ----- | ----- | ----- |
53-
| OpenStack Provider v1alpha5 (v0.6) | + |||| + | + |
54-
| OpenStack Provider v1alpha6 (v0.7) | + ||||||
55-
| OpenStack Provider v1alpha7 | + | + | + | + |||
51+
| | v1.22 | v1.23 | v1.24 | v1.25 | v1.26 | v1.27 | v1.28 |
52+
|------------------------------------| ----- | ----- | ----- | ----- | ----- | ----- | ----- |
53+
| OpenStack Provider v1alpha5 (v0.6) | + |||| + | + | + |
54+
| OpenStack Provider v1alpha6 (v0.7) | + |||||| + |
55+
| OpenStack Provider v1alpha7 | + | + | + | + ||||
5656

5757
This provider's versions are able to install Kubernetes to the following versions of OpenStack:
5858

hack/ci/cloud-init/controller.yaml.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
# https://docs.openstack.org/glance/latest/admin/quotas.html
6363
IMAGE_URLS="https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/amphora/2022-12-05/amphora-x64-haproxy.qcow2,"
6464
IMAGE_URLS+="https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/cirros/2022-12-05/cirros-0.6.1-x86_64-disk.img,"
65-
IMAGE_URLS+="https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/ubuntu/2023-09-29/ubuntu-2204-kube-v1.27.2.img,"
66-
IMAGE_URLS+="https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/flatcar/flatcar-stable-3602.2.0-kube-v1.27.2.img"
65+
IMAGE_URLS+="https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/ubuntu/2023-09-29/ubuntu-2204-kube-v1.28.2.img,"
66+
IMAGE_URLS+="https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/flatcar/flatcar-stable-3602.2.0-kube-v1.28.2.img"
6767

6868
[[post-config|$NOVA_CONF]]
6969
[DEFAULT]

test/e2e/data/e2e_conf.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ providers:
164164
variables:
165165
# used to ensure we deploy to the correct management cluster
166166
KUBE_CONTEXT: "kind-capo-e2e"
167-
KUBERNETES_VERSION: "v1.27.2"
167+
KUBERNETES_VERSION: "v1.28.2"
168168
CNI: "../../data/cni/calico.yaml"
169169
CCM: "../../data/ccm/cloud-controller-manager.yaml"
170170
EXP_CLUSTER_RESOURCE_SET: "true"
@@ -178,19 +178,19 @@ variables:
178178
OPENSTACK_DNS_NAMESERVERS: "8.8.8.8"
179179
OPENSTACK_FAILURE_DOMAIN: "testaz1"
180180
OPENSTACK_FAILURE_DOMAIN_ALT: "testaz2"
181-
OPENSTACK_IMAGE_NAME: "ubuntu-2204-kube-v1.27.2"
181+
OPENSTACK_IMAGE_NAME: "ubuntu-2204-kube-v1.28.2"
182182
OPENSTACK_NODE_MACHINE_FLAVOR: "m1.small"
183183
OPENSTACK_SSH_KEY_NAME: "cluster-api-provider-openstack-sigs-k8s-io"
184184
OPENSTACK_EXTERNAL_NETWORK_ID: ""
185185
OPENSTACK_VOLUME_TYPE_ALT: "test-volume-type"
186186
CONFORMANCE_WORKER_MACHINE_COUNT: "5"
187187
CONFORMANCE_CONTROL_PLANE_MACHINE_COUNT: "1"
188-
INIT_WITH_KUBERNETES_VERSION: "v1.27.2"
188+
INIT_WITH_KUBERNETES_VERSION: "v1.28.2"
189189
E2E_IMAGE_URL: "http://10.0.3.15/capo-e2e-image.tar"
190190
# The default user for SSH connections from bastion to machines
191191
SSH_USER_MACHINE: "ubuntu"
192192
EXP_KUBEADM_BOOTSTRAP_FORMAT_IGNITION: "true"
193-
OPENSTACK_FLATCAR_IMAGE_NAME: "flatcar-stable-3602.2.0-kube-v1.27.2"
193+
OPENSTACK_FLATCAR_IMAGE_NAME: "flatcar-stable-3602.2.0-kube-v1.28.2"
194194

195195
intervals:
196196
conformance/wait-control-plane: ["30m", "10s"]

test/e2e/suites/conformance/conformance_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ var _ = Describe("conformance tests", func() {
5353
})
5454
Measure(specName, func(b Benchmarker) {
5555
name := fmt.Sprintf("cluster-%s", namespace.Name)
56-
shared.SetEnvVar("USE_CI_ARTIFACTS", "true", false)
5756
kubernetesVersion := e2eCtx.E2EConfig.GetVariable(shared.KubernetesVersion)
5857

5958
flavor := shared.FlavorDefault
@@ -106,7 +105,6 @@ var _ = Describe("conformance tests", func() {
106105
}, 1)
107106

108107
AfterEach(func() {
109-
shared.SetEnvVar("USE_CI_ARTIFACTS", "false", false)
110108
// Dumps all the resources in the spec namespace, then cleanups the cluster object and the spec namespace itself.
111109
shared.DumpSpecResourcesAndCleanup(ctx, specName, namespace, e2eCtx)
112110
})

test/e2e/suites/e2e/clusterctl_upgrade_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ const OldCAPIVersion = "v1.4.6"
3232

3333
var _ = Describe("When testing clusterctl upgrades (v0.6=>current) [clusterctl-upgrade]", func() {
3434
ctx := context.TODO()
35-
shared.SetEnvVar("USE_CI_ARTIFACTS", "true", false)
3635
shared.SetEnvVar("DOWNLOAD_E2E_IMAGE", "true", false)
3736

3837
capi_e2e.ClusterctlUpgradeSpec(ctx, func() capi_e2e.ClusterctlUpgradeSpecInput {
@@ -56,7 +55,6 @@ var _ = Describe("When testing clusterctl upgrades (v0.6=>current) [clusterctl-u
5655

5756
var _ = Describe("When testing clusterctl upgrades (v0.7=>current) [clusterctl-upgrade]", func() {
5857
ctx := context.TODO()
59-
shared.SetEnvVar("USE_CI_ARTIFACTS", "true", false)
6058
shared.SetEnvVar("DOWNLOAD_E2E_IMAGE", "true", false)
6159

6260
capi_e2e.ClusterctlUpgradeSpec(ctx, func() capi_e2e.ClusterctlUpgradeSpecInput {

test/e2e/suites/e2e/e2e_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
8181
clusterResources = new(clusterctl.ApplyClusterTemplateAndWaitResult)
8282
Expect(e2eCtx.E2EConfig).ToNot(BeNil(), "Invalid argument. e2eConfig can't be nil when calling %s spec", specName)
8383
Expect(e2eCtx.E2EConfig.Variables).To(HaveKey(shared.KubernetesVersion))
84-
shared.SetEnvVar("USE_CI_ARTIFACTS", "false", false)
8584
postClusterCleanup = nil
8685
})
8786

@@ -636,7 +635,6 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
636635
})
637636

638637
AfterEach(func() {
639-
shared.SetEnvVar("USE_CI_ARTIFACTS", "false", false)
640638
shared.Logf("Attempting to collect logs for cluster %q in namespace %q", clusterResources.Cluster.Name, namespace.Name)
641639
e2eCtx.Environment.BootstrapClusterProxy.CollectWorkloadClusterLogs(ctx, namespace.Name, clusterResources.Cluster.Name, filepath.Join(e2eCtx.Settings.ArtifactFolder, "clusters", e2eCtx.Environment.BootstrapClusterProxy.GetName(), namespace.Name))
642640
// Dumps all the resources in the spec namespace, then cleanups the cluster object and the spec namespace itself.

test/e2e/suites/e2e/remediations_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import (
3232
var _ = Describe("When testing unhealthy machines remediation", func() {
3333
Describe("When testing MachineDeployment remediation", func() {
3434
ctx := context.TODO()
35-
shared.SetEnvVar("USE_CI_ARTIFACTS", "true", false)
3635
capi_e2e.MachineDeploymentRemediationSpec(ctx, func() capi_e2e.MachineDeploymentRemediationSpecInput {
3736
return capi_e2e.MachineDeploymentRemediationSpecInput{
3837
E2EConfig: e2eCtx.E2EConfig,

0 commit comments

Comments
 (0)