Skip to content

Commit c0c7560

Browse files
committed
Change interface names for predicatable ones for centos
Signed-off-by: Sunnatillo <[email protected]>
1 parent 2b95beb commit c0c7560

File tree

11 files changed

+43
-46
lines changed

11 files changed

+43
-46
lines changed

docs/dev-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ Please note, the precedence of variables is as follows:
287287
},
288288
"metadata": {,
289289
"CONTROL_PLANE_MACHINE_COUNT": "1",
290-
"KUBERNETES_VERSION": "v1.32.0",
290+
"KUBERNETES_VERSION": "v1.32.9",
291291
"WORKER_MACHINE_COUNT": "2",
292292
}
293293
}

examples/generate.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ KUSTOMIZE="${SOURCE_DIR}/../hack/tools/bin/kustomize"
2424

2525
# Cluster.
2626
export CLUSTER_NAME="${CLUSTER_NAME:-test1}"
27-
export KUBERNETES_VERSION="${KUBERNETES_VERSION:-v1.32.0}"
27+
export KUBERNETES_VERSION="${KUBERNETES_VERSION:-v1.32.9}"
2828
export CLUSTER_APIENDPOINT_HOST="${CLUSTER_APIENDPOINT_HOST:-192.168.111.249}"
2929
export CLUSTER_APIENDPOINT_PORT="${CLUSTER_APIENDPOINT_PORT:-6443}"
30-
export IMAGE_URL="${IMAGE_URL:-http://172.22.0.1/images/UBUNTU_24.04_NODE_IMAGE_K8S_v1.32.0-raw.img}"
31-
export IMAGE_CHECKSUM="${IMAGE_CHECKSUM:-http://172.22.0.1/images/UBUNTU_24.04_NODE_IMAGE_K8S_v1.32.0-raw.img.sha256sum}"
30+
export IMAGE_URL="${IMAGE_URL:-http://172.22.0.1/images/UBUNTU_24.04_NODE_IMAGE_K8S_v1.32.9-raw.img}"
31+
export IMAGE_CHECKSUM="${IMAGE_CHECKSUM:-http://172.22.0.1/images/UBUNTU_24.04_NODE_IMAGE_K8S_v1.32.9-raw.img.sha256sum}"
3232
export IMAGE_CHECKSUM_TYPE="${IMAGE_CHECKSUM_TYPE:-sha256}"
3333
export IMAGE_FORMAT="${IMAGE_FORMAT:-raw}"
3434

hack/ensure-kubectl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set -o nounset
1919
set -o pipefail
2020

2121
GOPATH_BIN="$(go env GOPATH)/bin/"
22-
MINIMUM_KUBECTL_VERSION=${KUBERNETES_VERSION:-"v1.32.0"}
22+
MINIMUM_KUBECTL_VERSION=${KUBERNETES_VERSION:-"v1.32.9"}
2323

2424
# Ensure the kubectl tool exists and is a viable version, or installs it
2525
verify_kubectl_version()

hack/gen_tilt_settings.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ cat <<EOF >tilt-settings.json
5050
{
5151
"capi_version": "${CAPIRELEASE}",
5252
"cert_manager_version": "v1.12.3",
53-
"kubernetes_version": "${KUBERNETES_VERSION:-v1.29.0}",
53+
"kubernetes_version": "${KUBERNETES_VERSION:-v1.32.9}",
5454
"extra_args": {
5555
"feature_gates": {
5656
"ClusterTopology": "true"
@@ -63,7 +63,7 @@ cat <<EOF >tilt-settings.json
6363
{
6464
"capi_version": "${CAPIRELEASE}",
6565
"cert_manager_version": "v1.12.3",
66-
"kubernetes_version": "${KUBERNETES_VERSION:-v1.32.0}"
66+
"kubernetes_version": "${KUBERNETES_VERSION:-v1.32.9}"
6767
}
6868
EOF
6969
fi

scripts/environment.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ else
4848
export EPHEMERAL_CLUSTER="minikube"
4949
fi
5050

51-
export FROM_K8S_VERSION=${FROM_K8S_VERSION:-"v1.31.2"}
52-
export KUBERNETES_VERSION=${KUBERNETES_VERSION:-"v1.32.0"}
51+
export FROM_K8S_VERSION=${FROM_K8S_VERSION:-"v1.31.13"}
52+
export KUBERNETES_VERSION=${KUBERNETES_VERSION:-"v1.32.9"}
5353

5454
# Can be overriden from jjbs
5555
export CAPI_VERSION=${CAPI_VERSION:-"v1beta1"}

test/e2e/config/e2e_conf.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ providers:
202202

203203
variables:
204204
CNI: "/tmp/calico.yaml"
205-
KUBERNETES_VERSION: "v1.32.0"
205+
KUBERNETES_VERSION: "v1.32.9"
206206
# KUBERNETES_PATCH_FROM_VERSION and KUBERNETES_PATCH_TO_VERSION are used to
207207
# test upgrade scenarios where we only want to upgrade the patch version of
208208
# kubernetes.
209-
KUBERNETES_PATCH_FROM_VERSION: "v1.31.0"
210-
KUBERNETES_PATCH_TO_VERSION: "v1.31.2"
209+
KUBERNETES_PATCH_FROM_VERSION: "v1.32.8"
210+
KUBERNETES_PATCH_TO_VERSION: "v1.32.9"
211211
CONTROL_PLANE_MACHINE_COUNT: 3
212212
WORKER_MACHINE_COUNT: 1
213213
NUM_NODES: 4

test/e2e/data/infrastructure-metal3/bases/centos-kubeadm-config/centos-kubeadm-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spec:
4848
4949
vrrp_instance VI_1 {
5050
state MASTER
51-
interface eth1
51+
interface enp2s0
5252
virtual_router_id 1
5353
priority 101
5454
advert_int 1
@@ -59,14 +59,14 @@ spec:
5959
k8s_api_check
6060
}
6161
}
62-
- path: /etc/NetworkManager/system-connections/eth0.nmconnection
62+
- path: /etc/NetworkManager/system-connections/enp1s0.nmconnection
6363
owner: root:root
6464
permissions: '0600'
6565
content: |
6666
[connection]
67-
id=eth0
67+
id=enp1s0
6868
type=ethernet
69-
interface-name=eth0
69+
interface-name=enp1s0
7070
master=ironicendpoint
7171
slave-type=bridge
7272
- content: |
@@ -135,8 +135,8 @@ spec:
135135
- systemctl restart NetworkManager.service
136136
- nmcli connection load /etc/NetworkManager/system-connections/ironicendpoint.nmconnection
137137
- nmcli connection up ironicendpoint
138-
- nmcli connection load /etc/NetworkManager/system-connections/eth0.nmconnection
139-
- nmcli connection up eth0
138+
- nmcli connection load /etc/NetworkManager/system-connections/enp1s0.nmconnection
139+
- nmcli connection up enp1s0
140140
- systemctl enable --now keepalived
141141
- sleep 60
142142
- systemctl enable --now crio kubelet
@@ -176,14 +176,14 @@ spec:
176176
permissions: "0755"
177177
- content: |
178178
[connection]
179-
id=eth0
179+
id=enp1s0
180180
type=ethernet
181-
interface-name=eth0
181+
interface-name=enp1s0
182182
master=ironicendpoint
183183
slave-type=bridge
184184
autoconnect=yes
185185
autoconnect-priority=999
186-
path: /etc/NetworkManager/system-connections/eth0.nmconnection
186+
path: /etc/NetworkManager/system-connections/enp1s0.nmconnection
187187
owner: root:root
188188
permissions: '0600'
189189
- path: /etc/NetworkManager/system-connections/ironicendpoint.nmconnection
@@ -230,7 +230,7 @@ spec:
230230
- systemctl restart NetworkManager.service
231231
- nmcli connection load /etc/NetworkManager/system-connections/ironicendpoint.nmconnection
232232
- nmcli connection up ironicendpoint
233-
- nmcli connection load /etc/NetworkManager/system-connections/eth0.nmconnection
234-
- nmcli connection up eth0
233+
- nmcli connection load /etc/NetworkManager/system-connections/enp1s0.nmconnection
234+
- nmcli connection up enp1s0
235235
- systemctl enable --now crio kubelet
236236
- sleep 120

test/e2e/data/infrastructure-metal3/bases/clusterclass-centos-kubeadm-config/clusterclass-centos-kubeadm-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ spec:
5656
5757
vrrp_instance VI_1 {
5858
state MASTER
59-
interface eth1
59+
interface enp2s0
6060
virtual_router_id 1
6161
priority 101
6262
advert_int 1
@@ -67,14 +67,14 @@ spec:
6767
k8s_api_check
6868
}
6969
}
70-
- path: /etc/NetworkManager/system-connections/eth0.nmconnection
70+
- path: /etc/NetworkManager/system-connections/enp1s0.nmconnection
7171
owner: root:root
7272
permissions: '0600'
7373
content: |
7474
[connection]
75-
id=eth0
75+
id=enp1s0
7676
type=ethernet
77-
interface-name=eth0
77+
interface-name=enp1s0
7878
master=ironicendpoint
7979
slave-type=bridge
8080
- content: |
@@ -143,8 +143,8 @@ spec:
143143
- systemctl restart NetworkManager.service
144144
- nmcli connection load /etc/NetworkManager/system-connections/ironicendpoint.nmconnection
145145
- nmcli connection up ironicendpoint
146-
- nmcli connection load /etc/NetworkManager/system-connections/eth0.nmconnection
147-
- nmcli connection up eth0
146+
- nmcli connection load /etc/NetworkManager/system-connections/enp1s0.nmconnection
147+
- nmcli connection up enp1s0
148148
- systemctl enable --now keepalived
149149
- sleep 60
150150
- systemctl enable --now crio kubelet
@@ -184,14 +184,14 @@ spec:
184184
permissions: "0755"
185185
- content: |
186186
[connection]
187-
id=eth0
187+
id=enp1s0
188188
type=ethernet
189-
interface-name=eth0
189+
interface-name=enp1s0
190190
master=ironicendpoint
191191
slave-type=bridge
192192
autoconnect=yes
193193
autoconnect-priority=999
194-
path: /etc/NetworkManager/system-connections/eth0.nmconnection
194+
path: /etc/NetworkManager/system-connections/enp1s0.nmconnection
195195
owner: root:root
196196
permissions: '0600'
197197
- path: /etc/NetworkManager/system-connections/ironicendpoint.nmconnection
@@ -238,7 +238,7 @@ spec:
238238
- systemctl restart NetworkManager.service
239239
- nmcli connection load /etc/NetworkManager/system-connections/ironicendpoint.nmconnection
240240
- nmcli connection up ironicendpoint
241-
- nmcli connection load /etc/NetworkManager/system-connections/eth0.nmconnection
242-
- nmcli connection up eth0
241+
- nmcli connection load /etc/NetworkManager/system-connections/enp1s0.nmconnection
242+
- nmcli connection up enp1s0
243243
- systemctl enable --now crio kubelet
244244
- sleep 120

test/e2e/e2e_suite_test.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,8 @@ func CreateClusterctlLocalRepository(config *clusterctl.E2EConfig, repositoryFol
185185
// Ensuring a CNI file is defined in the config and register a FileTransformation to inject the referenced file as in place of the CNI_RESOURCES envSubst variable.
186186
Expect(config.Variables).To(HaveKey(capi_e2e.CNIPath), "Missing %s variable in the config", capi_e2e.CNIPath)
187187
cniPath := config.GetVariable(capi_e2e.CNIPath)
188-
if osType == "centos" {
189-
updateCalico(config, cniPath, "eth1")
190-
} else {
191-
updateCalico(config, cniPath, "enp2s0")
192-
}
188+
updateCalico(config, cniPath, "enp2s0")
189+
193190
Expect(cniPath).To(BeAnExistingFile(), "The %s variable should resolve to an existing file", capi_e2e.CNIPath)
194191
createRepositoryInput.RegisterClusterResourceSetConfigMapTransformation(cniPath, capi_e2e.CNIResources)
195192

test/e2e/scalability_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ var _ = Describe("When testing scalability with fakeIPA and FKAS [scalability]",
6262
// We need to override clusterctl apply log folder to avoid getting our credentials exposed.
6363
clusterctlLogFolder = filepath.Join(os.TempDir(), "clusters", bootstrapClusterProxy.GetName())
6464
createFKASResources()
65-
imageURL, imageChecksum := EnsureImage("v1.30.0")
65+
imageURL, imageChecksum := EnsureImage("v1.30.14")
6666
os.Setenv("IMAGE_RAW_CHECKSUM", imageChecksum)
6767
os.Setenv("IMAGE_RAW_URL", imageURL)
6868
})

0 commit comments

Comments
 (0)