Skip to content

Commit

Permalink
Install isolation plugin from nerdctl
Browse files Browse the repository at this point in the history
because it is not included in the cni-plugins package.

Signed-off-by: Jan Dubois <[email protected]>
  • Loading branch information
jandubois committed Feb 23, 2022
1 parent 4d6ae94 commit 8225bda
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion genapkovl-lima.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ if [ "${LIMA_INSTALL_NERDCTL}" == "true" ]; then
cp "${tmp}/nerdctl/bin/${bin}" "${tmp}/usr/local/bin/${bin}"
chmod u+s "${tmp}/usr/local/bin/${bin}"
done
if [ "${LIMA_INSTALL_CNI_PLUGINS}" != "true" ]; then
if [ "${LIMA_INSTALL_CNI_PLUGINS}" == "true" ]; then
mkdir -p "${tmp}/usr/libexec/cni"
cp "${tmp}/nerdctl/libexec/cni/isolation" "${tmp}/usr/libexec/cni/isolation"
else
mkdir -p "${tmp}/usr/local/libexec/cni"
for plugin in bridge portmap firewall tuning isolation host-local; do
cp "${tmp}/nerdctl/libexec/cni/${plugin}" "${tmp}/usr/local/libexec/cni/${plugin}"
Expand Down

0 comments on commit 8225bda

Please sign in to comment.