Skip to content

Commit 3b3a7a2

Browse files
Use Fedora 39 inside provider and declare the dependencies
1 parent 085a26a commit 3b3a7a2

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

dependencies.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ dependencies:
7171
- path: hack/ci/Vagrantfile-fedora
7272
match: fedora
7373

74+
- name: e2e-fedora-image-url
75+
version: 39-1.5
76+
refPaths:
77+
- path: hack/ci/Vagrantfile-fedora
78+
match: config.vm.box_url
79+
7480
- name: e2e-ubuntu
7581
version: ubuntu2204
7682
refPaths:

hack/ci/Vagrantfile-fedora

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44
# Vagrant box for testing
55
Vagrant.configure("2") do |config|
66
config.vm.box = "fedora/39-cloud-base"
7-
config.vm.box_url = "https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/39/Cloud/x86_64/images/Fedora-Cloud-Base-Vagrant-39-1.5.x86_64.vagrant-virtualbox.box"
7+
config.vm.box_url = "override-by-provider"
88
memory = 8192
99
cpus = 4
1010

1111
config.vm.provider :virtualbox do |v|
12+
v.vm.box_url = "https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/39/Cloud/x86_64/images/Fedora-Cloud-Base-Vagrant-39-1.5.x86_64.vagrant-virtualbox.box"
1213
v.memory = memory
1314
v.cpus = cpus
1415
end
1516

1617
config.vm.provider :libvirt do |v|
18+
v.vm.box_url = "https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/39/Cloud/x86_64/images/Fedora-Cloud-Base-Vagrant-39-1.5.x86_64.vagrant-libvirt.box"
1719
v.memory = memory
1820
v.cpus = cpus
1921
end

hack/ci/install-kubernetes.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ IP=$(ip route get 1.2.3.4 | cut -d ' ' -f7 | tr -d '[:space:]')
2020
swapoff -a
2121
modprobe br_netfilter
2222
sysctl -w net.ipv4.ip_forward=1
23-
echo "Number of cpus"
24-
nproc
25-
echo "kubeadm init"
23+
echo "Number of CPUs: $(nproc)"
2624
kubeadm init --apiserver-cert-extra-sans="$IP"
2725

2826
# Setup kubectl

0 commit comments

Comments
 (0)