diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-11-10 14:21:14 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-03-15 23:15:42 -0400 |
commit | a0c94280cf4eb35ef05f8d91c66c75746d9e25b0 (patch) | |
tree | 7c912e5fb948d346e68c3f24d9cc83257738c40a | |
parent | af1690d85199505786b88340cc78f9754fd2b31c (diff) | |
download | meta-virtualization-a0c94280cf4eb35ef05f8d91c66c75746d9e25b0.tar.gz |
k3s: add kernel module rrecommends (and PV fix)
Fixing up the PV to use SRCPV for tracking future version bumps, if
the tree is dirty or not, git will tell us.
We also add some additional kernel module rrecommends, so that the
tools called by k3s can find the support they need (mainly iptools)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-containers/k3s/k3s_git.bb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/recipes-containers/k3s/k3s_git.bb b/recipes-containers/k3s/k3s_git.bb index dca187e0..ea5ed75d 100644 --- a/recipes-containers/k3s/k3s_git.bb +++ b/recipes-containers/k3s/k3s_git.bb | |||
@@ -3,7 +3,6 @@ DESCRIPTION = "Lightweight Kubernetes, intended to be a fully compliant Kubernet | |||
3 | HOMEPAGE = "https://k3s.io/" | 3 | HOMEPAGE = "https://k3s.io/" |
4 | LICENSE = "Apache-2.0" | 4 | LICENSE = "Apache-2.0" |
5 | LIC_FILES_CHKSUM = "file://${S}/src/import/LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" | 5 | LIC_FILES_CHKSUM = "file://${S}/src/import/LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" |
6 | PV = "v1.18.9+k3s1-dirty" | ||
7 | 6 | ||
8 | SRC_URI = "git://github.com/rancher/k3s.git;branch=release-1.18;name=k3s \ | 7 | SRC_URI = "git://github.com/rancher/k3s.git;branch=release-1.18;name=k3s \ |
9 | file://k3s.service \ | 8 | file://k3s.service \ |
@@ -16,6 +15,8 @@ SRC_URI = "git://github.com/rancher/k3s.git;branch=release-1.18;name=k3s \ | |||
16 | SRC_URI[k3s.md5sum] = "363d3a08dc0b72ba6e6577964f6e94a5" | 15 | SRC_URI[k3s.md5sum] = "363d3a08dc0b72ba6e6577964f6e94a5" |
17 | SRCREV_k3s = "630bebf94b9dce6b8cd3d402644ed023b3af8f90" | 16 | SRCREV_k3s = "630bebf94b9dce6b8cd3d402644ed023b3af8f90" |
18 | 17 | ||
18 | PV = "v1.18.9+git${SRCPV}" | ||
19 | |||
19 | CNI_NETWORKING_FILES ?= "${WORKDIR}/cni-containerd-net.conf" | 20 | CNI_NETWORKING_FILES ?= "${WORKDIR}/cni-containerd-net.conf" |
20 | 21 | ||
21 | inherit go | 22 | inherit go |
@@ -68,10 +69,12 @@ SYSTEMD_AUTO_ENABLE_${PN}-agent = "disable" | |||
68 | FILES_${PN}-agent = "${BIN_PREFIX}/bin/k3s-agent" | 69 | FILES_${PN}-agent = "${BIN_PREFIX}/bin/k3s-agent" |
69 | FILES_${PN} += "${BIN_PREFIX}/bin/*" | 70 | FILES_${PN} += "${BIN_PREFIX}/bin/*" |
70 | 71 | ||
71 | RDEPENDS_${PN} = "cni conntrack-tools coreutils findutils iproute2 ipset virtual/containerd" | 72 | RDEPENDS_${PN} = "k3s-cni conntrack-tools coreutils findutils iptables iproute2 ipset virtual/containerd" |
72 | RDEPENDS_${PN}-server = "${PN}" | 73 | RDEPENDS_${PN}-server = "${PN}" |
73 | RDEPENDS_${PN}-agent = "${PN}" | 74 | RDEPENDS_${PN}-agent = "${PN}" |
74 | 75 | ||
76 | RRECOMMENDS_${PN} = "kernel-module-xt-comment kernel-module-xt-mark kernel-module-xt-connmark kernel-module-vxlan" | ||
77 | |||
75 | RCONFLICTS_${PN} = "kubectl" | 78 | RCONFLICTS_${PN} = "kubectl" |
76 | 79 | ||
77 | INHIBIT_PACKAGE_STRIP = "1" | 80 | INHIBIT_PACKAGE_STRIP = "1" |