Skip to content

Commit 8225bda

Browse files
committed
Install isolation plugin from nerdctl
because it is not included in the cni-plugins package. Signed-off-by: Jan Dubois <[email protected]>
1 parent 4d6ae94 commit 8225bda

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

genapkovl-lima.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,10 @@ if [ "${LIMA_INSTALL_NERDCTL}" == "true" ]; then
225225
cp "${tmp}/nerdctl/bin/${bin}" "${tmp}/usr/local/bin/${bin}"
226226
chmod u+s "${tmp}/usr/local/bin/${bin}"
227227
done
228-
if [ "${LIMA_INSTALL_CNI_PLUGINS}" != "true" ]; then
228+
if [ "${LIMA_INSTALL_CNI_PLUGINS}" == "true" ]; then
229+
mkdir -p "${tmp}/usr/libexec/cni"
230+
cp "${tmp}/nerdctl/libexec/cni/isolation" "${tmp}/usr/libexec/cni/isolation"
231+
else
229232
mkdir -p "${tmp}/usr/local/libexec/cni"
230233
for plugin in bridge portmap firewall tuning isolation host-local; do
231234
cp "${tmp}/nerdctl/libexec/cni/${plugin}" "${tmp}/usr/local/libexec/cni/${plugin}"

0 commit comments

Comments
 (0)