Skip to content

Commit

Permalink
e2e: fix pod deletion in Ubuntu 24.04 by disabling runc apparmor
Browse files Browse the repository at this point in the history
  • Loading branch information
askervin committed Sep 9, 2024
1 parent 1de1b34 commit f0144ee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions demo/lib/distro.bash
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,21 @@ debian-ssh-user() {
echo debian
}

ubuntu-apparmor-disable-runc() {
vm-command "[ -f /etc/apparmor.d/runc ] && ln -s /etc/apparmor.d/runc /etc/apparmor.d/disable/ && apparmor_parser -R /etc/apparmor.d/runc"
}

ubuntu-config-containerd() {
ubuntu-apparmor-disable-runc
default-config-containerd
}

ubuntu-config-crio() {
ubuntu-apparmor-disable-runc
default-config-crio
}


debian-pkg-type() {
echo deb
}
Expand Down

0 comments on commit f0144ee

Please sign in to comment.