Skip to content

Commit 094b5c3

Browse files
authored
Merge pull request #1571 from Nordix/lentzi90/e2e-k8s-v1.26.5
🌱 Bump Kubernetes version used in e2e tests
2 parents bf17da1 + 8347322 commit 094b5c3

File tree

14 files changed

+17
-74
lines changed

14 files changed

+17
-74
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,6 @@ docs/book/book/
176176

177177
# venv
178178
.venv
179+
180+
# Development container files (https://containers.dev/)
181+
.devcontainer

β€Žhack/ci/cloud-init/controller.yaml.tplβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
# https://docs.openstack.org/glance/latest/admin/quotas.html
139139
/opt/stack/devstack/tools/upload_image.sh https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/cirros/2022-12-05/cirros-0.6.1-x86_64-disk.img
140140
/opt/stack/devstack/tools/upload_image.sh https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/ubuntu/2023-01-14/focal-server-cloudimg-amd64.img
141-
/opt/stack/devstack/tools/upload_image.sh https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/flatcar/flatcar-stable-3510.2.0-kube-v1.25.8.img
141+
/opt/stack/devstack/tools/upload_image.sh https://storage.googleapis.com/artifacts.k8s-staging-capi-openstack.appspot.com/test/flatcar/flatcar-stable-3510.2.1-kube-v1.26.5.img
142142

143143
# Add the controller to its own host aggregate and availability zone
144144
aggregateid=$(openstack aggregate create --zone "${PRIMARY_AZ}" "${PRIMARY_AZ}" -f value -c id)

β€Žtest/e2e/data/e2e_conf.yamlβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ providers:
128128
variables:
129129
# used to ensure we deploy to the correct management cluster
130130
KUBE_CONTEXT: "kind-capo-e2e"
131-
KUBERNETES_VERSION: "v1.25.0"
132-
KUBERNETES_VERSION_UPGRADE_FROM: "v1.24.9"
133-
KUBERNETES_VERSION_UPGRADE_TO: "v1.25.0"
134-
ETCD_VERSION_UPGRADE_TO: "3.5.4-0"
131+
KUBERNETES_VERSION: "v1.26.5"
132+
KUBERNETES_VERSION_UPGRADE_FROM: "v1.25.10"
133+
KUBERNETES_VERSION_UPGRADE_TO: "v1.26.5"
134+
ETCD_VERSION_UPGRADE_TO: "3.5.6-0"
135135
COREDNS_VERSION_UPGRADE_TO: "v1.9.3"
136136
CNI: "../../data/cni/calico.yaml"
137137
CCM: "../../data/ccm/cloud-controller-manager.yaml"
@@ -153,12 +153,12 @@ variables:
153153
OPENSTACK_VOLUME_TYPE_ALT: "test-volume-type"
154154
CONFORMANCE_WORKER_MACHINE_COUNT: "5"
155155
CONFORMANCE_CONTROL_PLANE_MACHINE_COUNT: "1"
156-
INIT_WITH_KUBERNETES_VERSION: "v1.25.0"
156+
INIT_WITH_KUBERNETES_VERSION: "v1.26.5"
157157
E2E_IMAGE_URL: "http://10.0.3.15/capo-e2e-image.tar"
158158
# The default user for SSH connections from bastion to machines
159159
SSH_USER_MACHINE: "ubuntu"
160160
EXP_KUBEADM_BOOTSTRAP_FORMAT_IGNITION: "true"
161-
OPENSTACK_FLATCAR_IMAGE_NAME: "flatcar-stable-3510.2.0-kube-v1.25.8"
161+
OPENSTACK_FLATCAR_IMAGE_NAME: "flatcar-stable-3510.2.1-kube-v1.26.5"
162162

163163
intervals:
164164
conformance/wait-control-plane: ["30m", "10s"]
File renamed without changes.

β€Žtest/e2e/data/kustomize/common-patches/ccm/kustomization.yamlβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
apiVersion: kustomize.config.k8s.io/v1alpha1
44
kind: Component
55

6+
resources:
7+
- ccm.yaml
8+
69
patchesStrategicMerge:
710
- patch-ccm.yaml
811

β€Žtest/e2e/data/kustomize/common-patches/containerd/containerd-kcp.yamlβ€Ž

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,6 @@
2020
apt update -qq
2121
echo "Installing containerd"
2222
apt-get install -y containerd
23-
# TODO(lentzi90): This adds cri-tools from the kubernetes repository, since we need to make sure it is a specific version
24-
# When pulled in as a dependency of kubeadm, we just get the latest version.
25-
# After upgrading to v1.26 we should be able to drop this.
26-
mkdir -p /etc/apt/keyrings
27-
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /etc/apt/keyrings/kubernetes.gpg
28-
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes.gpg] https://apt.kubernetes.io/ kubernetes-xenial main' > /etc/apt/sources.list.d/kubernetes.list
29-
apt-get update
30-
VERSION_WITHOUT_PREFIX="${KUBERNETES_VERSION#v}"
31-
# replace . with \.
32-
VERSION_REGEX="$${VERSION_WITHOUT_PREFIX//./\\.}"
33-
PACKAGE_VERSION="$(apt-cache madison kubelet | grep "$${VERSION_REGEX}-" | head -n1 | cut -d '|' -f 2 | tr -d '[:space:]')"
34-
apt-get install -y cri-tools="$${PACKAGE_VERSION}"
3523
owner: root:root
3624
path: /usr/local/bin/ci-pre-kubeadm.sh
3725
permissions: "0750"

β€Žtest/e2e/data/kustomize/common-patches/containerd/containerd-kct.yamlβ€Ž

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,6 @@
2020
apt update -qq
2121
echo "Installing containerd"
2222
apt-get install -y containerd
23-
# TODO(lentzi90): This adds cri-tools from the kubernetes repository, since we need to make sure it is a specific version
24-
# When pulled in as a dependency of kubeadm, we just get the latest version.
25-
# After upgrading to v1.26 we should be able to drop this.
26-
mkdir -p /etc/apt/keyrings
27-
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /etc/apt/keyrings/kubernetes.gpg
28-
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes.gpg] https://apt.kubernetes.io/ kubernetes-xenial main' > /etc/apt/sources.list.d/kubernetes.list
29-
apt-get update
30-
VERSION_WITHOUT_PREFIX="${KUBERNETES_VERSION#v}"
31-
# replace . with \.
32-
VERSION_REGEX="$${VERSION_WITHOUT_PREFIX//./\\.}"
33-
PACKAGE_VERSION="$(apt-cache madison kubelet | grep "$${VERSION_REGEX}-" | head -n1 | cut -d '|' -f 2 | tr -d '[:space:]')"
34-
apt-get install -y cri-tools="$${PACKAGE_VERSION}"
3523
owner: root:root
3624
path: /usr/local/bin/ci-pre-kubeadm.sh
3725
permissions: "0750"

β€Žtest/e2e/data/kustomize/default/kustomization.yamlβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
resources:
33
- ../../../../../kustomize/v1alpha7/default
4-
- ccm.yaml
54

65
components:
76
- ../common-patches/cni

β€Žtest/e2e/data/kustomize/flatcar/ccm.yamlβ€Ž

Lines changed: 0 additions & 19 deletions
This file was deleted.

β€Žtest/e2e/data/kustomize/flatcar/kustomization.yamlβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
resources:
33
- ../../../../../kustomize/v1alpha7/flatcar
4-
- ccm.yaml
54

65
components:
76
- ../common-patches/cni

0 commit comments

Comments
Β (0)