Skip to contentSkip to conversation

k3s: Correct name for containerd conf

PATCH New [email protected] 1 participant 2 messages Feb 20

lore
Share & tools
lore
#0 lore raw

cover k3s: Correct name for containerd conf

From: Adam Johnston <[email protected]>

The config list provided by the K3s recipe follows the format for a config list (.conflist) but has the extension of a config file (.conf). When the file is parsed, this results in...

failed to load CNI config file /etc/cni/net.d/cni-containerd-net.conf error parsing configuration: missing 'type': invalid cni config

Rename the file from .conf to .conflist so that it is parsed correctly. This matches how the file is named for containerd and kubernetes recipes.

Adam Johnston (1):
k3s: Correct file extension for containerd conf

 .../{cni-containerd-net.conf => cni-containerd-net.conflist}    | 0
 recipes-containers/k3s/k3s_git.bb                               | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename recipes-containers/k3s/k3s/{cni-containerd-net.conf => cni-containerd-net.conflist} (100%)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/1 k3s: Correct name for containerd conf

From: Adam Johnston <[email protected]>

The config list provided by the K3s recipe follows the format for a config list (.conflist) but has the extension of a config file (.conf). When the file is parsed, this results in...

failed to load CNI config file /etc/cni/net.d/cni-containerd-net.conf error parsing configuration: missing 'type': invalid cni config

Rename the file from .conf to .conflist so that it is parsed correctly. This matches how the file is named for containerd and kubernetes recipes.

---
 .../{cni-containerd-net.conf => cni-containerd-net.conflist}    | 0
 recipes-containers/k3s/k3s_git.bb                               | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename recipes-containers/k3s/k3s/{cni-containerd-net.conf => cni-containerd-net.conflist} (100%)
recipes-containers/k3s/k3s/cni-containerd-net.conflist renamed from recipes-containers/k3s/k3s/cni-containerd-net.conf +0 -0
similarity index 100%
rename from recipes-containers/k3s/k3s/cni-containerd-net.conf
rename to recipes-containers/k3s/k3s/cni-containerd-net.conflist
recipes-containers/k3s/k3s_git.bb +1 -1
index a1e3ec8c..7269c094 100644
@@ -9,7 +9,7 @@ SRC_URI = "git://github.com/rancher/k3s.git;branch=release-1.34;name=k3s;protoco
            file://k3s-agent.service \
            file://k3s-agent \
            file://k3s-clean \
-           file://cni-containerd-net.conf \
+           file://cni-containerd-net.conflist \
            file://0001-Finding-host-local-in-usr-libexec.patch;patchdir=src/import \
            file://k3s-killall.sh \
           "
Signature · 1 line
2.34.1