Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
f19152cf
Unverified
Commit
f19152cf
authored
Feb 07, 2023
by
Derek Nola
Committed by
GitHub
Feb 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump vagrant boxes to fedora37 (#6910)
* Bump to generic/fedora37 * Disable sonobuoy on rootless Signed-off-by:
Derek Nola
<
derek.nola@suse.com
>
parent
73a9f5dd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
10 deletions
+15
-10
cgroup.yaml
.github/workflows/cgroup.yaml
+5
-5
TESTING.md
tests/TESTING.md
+2
-2
Vagrantfile
tests/cgroup/unified/fedora/Vagrantfile
+7
-2
Vagrantfile
tests/install/fedora/Vagrantfile
+1
-1
No files found.
.github/workflows/cgroup.yaml
View file @
f19152cf
...
@@ -42,7 +42,7 @@ jobs:
...
@@ -42,7 +42,7 @@ jobs:
strategy
:
strategy
:
fail-fast
:
false
fail-fast
:
false
matrix
:
matrix
:
vm
:
[
fedora
-35
]
vm
:
[
fedora
]
mode
:
[
unified
]
mode
:
[
unified
]
max-parallel
:
1
max-parallel
:
1
defaults
:
defaults
:
...
@@ -65,7 +65,7 @@ jobs:
...
@@ -65,7 +65,7 @@ jobs:
id
:
vagrant-cache
id
:
vagrant-cache
continue-on-error
:
true
continue-on-error
:
true
-
name
:
"
Vagrant
Plugin(s)"
-
name
:
"
Vagrant
Plugin(s)"
run
:
vagrant plugin install vagrant-k3s
run
:
vagrant plugin install vagrant-k3s
vagrant-reload
-
name
:
"
Vagrant
Up"
-
name
:
"
Vagrant
Up"
run
:
vagrant up
run
:
vagrant up
-
name
:
"
K3s
Prepare"
-
name
:
"
K3s
Prepare"
...
@@ -90,6 +90,6 @@ jobs:
...
@@ -90,6 +90,6 @@ jobs:
-
name
:
"
[Rootless]
K3s
Ready"
-
name
:
"
[Rootless]
K3s
Ready"
env
:
{
TEST_KUBECONFIG
:
/home/vagrant/.kube/k3s.yaml
}
env
:
{
TEST_KUBECONFIG
:
/home/vagrant/.kube/k3s.yaml
}
run
:
vagrant provision --provision-with=k3s-ready
run
:
vagrant provision --provision-with=k3s-ready
-
name
:
"
[Rootless]
Sonobuoy
(--mode=quick)"
#
- name: "[Rootless] Sonobuoy (--mode=quick)"
env
:
{
TEST_KUBECONFIG
:
/home/vagrant/.kube/k3s.yaml
,
TEST_RESULTS_PATH
:
rootless
}
#
env: {TEST_KUBECONFIG: /home/vagrant/.kube/k3s.yaml, TEST_RESULTS_PATH: rootless}
run
:
vagrant provision --provision-with=k3s-sonobuoy
#
run: vagrant provision --provision-with=k3s-sonobuoy
tests/TESTING.md
View file @
f19152cf
...
@@ -66,13 +66,13 @@ The sub-directories therein contain fixtures for running simple clusters to asse
...
@@ -66,13 +66,13 @@ The sub-directories therein contain fixtures for running simple clusters to asse
-
[
Install Script
](
../tests/install
)
:arrow_right: scheduled nightly
-
[
Install Script
](
../tests/install
)
:arrow_right: scheduled nightly
-
[
CentOS 7
](
../tests/install/centos-7
)
(
stand-in
for RHEL 7)
-
[
CentOS 7
](
../tests/install/centos-7
)
(
stand-in
for RHEL 7)
-
[
Rocky Linux 8
](
../tests/install/rocky-8
)
(
stand-in
for RHEL 8)
-
[
Rocky Linux 8
](
../tests/install/rocky-8
)
(
stand-in
for RHEL 8)
-
[
Fedora
](
../tests/install/fedora
)
-
[
Fedora
37
](
../tests/install/fedora
)
-
[
Leap 15.4
](
../tests/install/opensuse-leap
)
(
stand-in
for SLES)
-
[
Leap 15.4
](
../tests/install/opensuse-leap
)
(
stand-in
for SLES)
-
[
MicroOS
](
../tests/install/opensuse-microos
)
(
stand-in
for SLE-Micro)
-
[
MicroOS
](
../tests/install/opensuse-microos
)
(
stand-in
for SLE-Micro)
-
[
Ubuntu 20.04
](
../tests/install/ubuntu-focal
)
(
Focal
Fossa)
-
[
Ubuntu 20.04
](
../tests/install/ubuntu-focal
)
(
Focal
Fossa)
-
[
Control Groups
](
../tests/cgroup
)
:arrow_right: on any code change
-
[
Control Groups
](
../tests/cgroup
)
:arrow_right: on any code change
-
[
mode=unified
](
../tests/cgroup/unified
)
(
cgroups
v2)
-
[
mode=unified
](
../tests/cgroup/unified
)
(
cgroups
v2)
-
[
Fedora 3
5
](
../tests/cgroup/unified/fedora-35
)
(
rootfull
+ rootless)
-
[
Fedora 3
7
](
../tests/cgroup/unified/fedora
)
(
rootfull
+ rootless)
-
[
Snapshotter
](
../tests/snapshotter/btrfs/opensuse-leap
)
:arrow_right: on any code change
-
[
Snapshotter
](
../tests/snapshotter/btrfs/opensuse-leap
)
:arrow_right: on any code change
-
[
BTRFS
](
../tests/snapshotter/btrfs
)
(
[containerd
built-in](https://github.com/containerd/containerd/tree/main/snapshots/btrfs))
-
[
BTRFS
](
../tests/snapshotter/btrfs
)
(
[containerd
built-in](https://github.com/containerd/containerd/tree/main/snapshots/btrfs))
-
[
Leap 15.4
](
../tests/snapshotter/btrfs/opensuse-leap
)
-
[
Leap 15.4
](
../tests/snapshotter/btrfs/opensuse-leap
)
...
...
tests/cgroup/unified/fedora
-35
/Vagrantfile
→
tests/cgroup/unified/fedora/Vagrantfile
View file @
f19152cf
...
@@ -10,13 +10,14 @@ Vagrant.configure("2") do |config|
...
@@ -10,13 +10,14 @@ Vagrant.configure("2") do |config|
config
.
vagrant
.
plugins
=
{
config
.
vagrant
.
plugins
=
{
'vagrant-k3s'
=>
{
:version
=>
'~> 0.1.3'
},
'vagrant-k3s'
=>
{
:version
=>
'~> 0.1.3'
},
}
}
config
.
vm
.
box
=
"
fedora/35-cloud-base
"
config
.
vm
.
box
=
"
generic/fedora37
"
config
.
vm
.
boot_timeout
=
ENV
[
'TEST_VM_BOOT_TIMEOUT'
]
||
600
# seconds
config
.
vm
.
boot_timeout
=
ENV
[
'TEST_VM_BOOT_TIMEOUT'
]
||
600
# seconds
config
.
vm
.
synced_folder
'../../../../dist/artifacts'
,
'/vagrant'
,
type:
'rsync'
,
disabled:
false
,
config
.
vm
.
synced_folder
'../../../../dist/artifacts'
,
'/vagrant'
,
type:
'rsync'
,
disabled:
false
,
rsync__exclude:
ENV
[
'RSYNC_EXCLUDE'
]
||
'*.tar.*'
rsync__exclude:
ENV
[
'RSYNC_EXCLUDE'
]
||
'*.tar.*'
config
.
vm
.
define
'cgroup-unified'
,
primary:
true
do
|
test
|
config
.
vm
.
define
'cgroup-unified'
,
primary:
true
do
|
test
|
test
.
vm
.
hostname
=
'smoke'
test
.
vm
.
hostname
=
'smoke'
test
.
vm
.
provision
"disable-firewall"
,
type:
"shell"
,
inline:
"systemctl stop firewalld && systemctl disable firewalld"
test
.
vm
.
provision
:file
,
run:
'always'
,
source:
ENV
[
'TEST_UNITFILE_ROOTFULL'
],
destination:
'k3s-rootfull.service'
test
.
vm
.
provision
:file
,
run:
'always'
,
source:
ENV
[
'TEST_UNITFILE_ROOTFULL'
],
destination:
'k3s-rootfull.service'
test
.
vm
.
provision
:file
,
run:
'always'
,
source:
ENV
[
'TEST_UNITFILE_ROOTLESS'
],
destination:
'k3s-rootless.service'
test
.
vm
.
provision
:file
,
run:
'always'
,
source:
ENV
[
'TEST_UNITFILE_ROOTLESS'
],
destination:
'k3s-rootless.service'
test
.
vm
.
provision
'k3s-prepare'
,
type:
"shell"
,
run:
ENV
[
'CI'
]
==
'true'
?
'never'
:
'once'
,
privileged:
true
do
|
sh
|
test
.
vm
.
provision
'k3s-prepare'
,
type:
"shell"
,
run:
ENV
[
'CI'
]
==
'true'
?
'never'
:
'once'
,
privileged:
true
do
|
sh
|
...
@@ -36,9 +37,11 @@ Vagrant.configure("2") do |config|
...
@@ -36,9 +37,11 @@ Vagrant.configure("2") do |config|
systemctl daemon-reload
systemctl daemon-reload
# Install sonobuoy binary
# Install sonobuoy binary
curl -fsSL https://github.com/vmware-tanzu/sonobuoy/releases/download/v0.20.0/sonobuoy_0.20.0_linux_amd64.tar.gz | tar xzvC /usr/local/bin sonobuoy
SONOBUOY_VER=0.56.15
curl -fsSL https://github.com/vmware-tanzu/sonobuoy/releases/download/v"$SONOBUOY_VER"/sonobuoy_"$SONOBUOY_VER"_linux_amd64.tar.gz | tar xzvC /usr/local/bin sonobuoy
# [Rootless] Configure sysctl
# [Rootless] Configure sysctl
dnf install -y fuse-overlayfs fuse
echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/rootless.conf
echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/rootless.conf
sysctl --system
sysctl --system
# [Rootless] Enable cgroup v2 delegation
# [Rootless] Enable cgroup v2 delegation
...
@@ -47,6 +50,7 @@ Vagrant.configure("2") do |config|
...
@@ -47,6 +50,7 @@ Vagrant.configure("2") do |config|
[Service]
[Service]
Delegate=yes
Delegate=yes
EOF
EOF
systemctl daemon-reload
systemctl daemon-reload
# [Rootless] Enable systemd lingering
# [Rootless] Enable systemd lingering
...
@@ -58,6 +62,7 @@ EOF
...
@@ -58,6 +62,7 @@ EOF
chown -R vagrant:vagrant /home/vagrant/.config
chown -R vagrant:vagrant /home/vagrant/.config
SHELL
SHELL
end
end
test
.
vm
.
provision
'k3s-install'
,
type:
'k3s'
,
run:
ENV
[
'CI'
]
==
'true'
?
'never'
:
'once'
do
|
k3s
|
test
.
vm
.
provision
'k3s-install'
,
type:
'k3s'
,
run:
ENV
[
'CI'
]
==
'true'
?
'never'
:
'once'
do
|
k3s
|
k3s
.
args
=
%w[server]
k3s
.
args
=
%w[server]
k3s
.
env
=
%w[INSTALL_K3S_NAME=server INSTALL_K3S_SKIP_DOWNLOAD=true K3S_TOKEN=vagrant INSTALL_K3S_SKIP_ENABLE=true]
k3s
.
env
=
%w[INSTALL_K3S_NAME=server INSTALL_K3S_SKIP_DOWNLOAD=true K3S_TOKEN=vagrant INSTALL_K3S_SKIP_ENABLE=true]
...
...
tests/install/fedora/Vagrantfile
View file @
f19152cf
...
@@ -8,7 +8,7 @@ Vagrant.configure("2") do |config|
...
@@ -8,7 +8,7 @@ Vagrant.configure("2") do |config|
config
.
vagrant
.
plugins
=
{
config
.
vagrant
.
plugins
=
{
'vagrant-k3s'
=>
{
:version
=>
'~> 0.1.3'
},
'vagrant-k3s'
=>
{
:version
=>
'~> 0.1.3'
},
}
}
config
.
vm
.
box
=
'generic/fedora3
6
'
config
.
vm
.
box
=
'generic/fedora3
7
'
config
.
vm
.
boot_timeout
=
ENV
[
'TEST_VM_BOOT_TIMEOUT'
]
||
600
# seconds
config
.
vm
.
boot_timeout
=
ENV
[
'TEST_VM_BOOT_TIMEOUT'
]
||
600
# seconds
config
.
vm
.
synced_folder
'.'
,
'/vagrant'
,
disabled:
true
config
.
vm
.
synced_folder
'.'
,
'/vagrant'
,
disabled:
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment