Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 4abd915

Browse files
authored
Merge pull request #5363 from littlejawa/fix_5362
Fix CNI config file extension for cri-o testing.
2 parents 72edbee + 756ffe2 commit 4abd915

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

integration/kubernetes/init.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,10 @@ main() {
332332
if [ ! -d "${cni_directory}" ]; then
333333
sudo mkdir -p "${cni_directory}"
334334
fi
335-
sudo cp "${crio_repository_path}/contrib/cni/10-crio-bridge.conf" "${cni_directory}"
335+
# The config file for cni in cri-o v1.26 and higher has the extension "conflist"
336+
# Using a wildcard here to keep support for both names.
337+
# To be removed and replaced with "conflist" when support for older cri-o versions is abandonned.
338+
sudo cp "${crio_repository_path}/contrib/cni/10-crio-bridge.conf"* "${cni_directory}"
336339
fi
337340

338341
info "Start ${CRI_RUNTIME} service"

0 commit comments

Comments
 (0)