summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2023-08-25 14:42:14 -0500
committerWilliam Hubbs <williamh@gentoo.org>2023-08-25 14:58:56 -0500
commit0be0931ddce275aa3e887832f0f89004ef031b44 (patch)
tree39c71d5eb09715611ab0e6e0239e70266cc84405 /sys-cluster
parentsys-cluster/kubectl: add 1.28.1 (diff)
downloadgentoo-0be0931ddce275aa3e887832f0f89004ef031b44.tar.gz
gentoo-0be0931ddce275aa3e887832f0f89004ef031b44.tar.bz2
gentoo-0be0931ddce275aa3e887832f0f89004ef031b44.zip
sys-cluster/kubelet: add 1.28.1
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/kubelet/Manifest1
-rw-r--r--sys-cluster/kubelet/kubelet-1.28.1.ebuild37
2 files changed, 38 insertions, 0 deletions
diff --git a/sys-cluster/kubelet/Manifest b/sys-cluster/kubelet/Manifest
index fc6b7fa6a6f2..b8ecbe54b386 100644
--- a/sys-cluster/kubelet/Manifest
+++ b/sys-cluster/kubelet/Manifest
@@ -11,3 +11,4 @@ DIST kubernetes-1.27.3.tar.gz 38121196 BLAKE2B 69aab2d42fdbb5704d6bd248e6ced1546
DIST kubernetes-1.27.4.tar.gz 38192024 BLAKE2B b4f3afe7e96f74cbbb18866234e4ad591fa055bd158c8dad4b17c66b9ff5dfd9ea28bfd4ed5a89433fe58ecf4c86c821b1fb89bfaa5808310c8b72b875ce3fa2 SHA512 0558a8760e538aeb29efff54282a2fab613f5e6c16abf8964ab836065a4f40a568dae3caa5c06e172e2643491a63b1056c093421fded8cb9b7a0c0ed10b9f6ec
DIST kubernetes-1.27.5.tar.gz 38204018 BLAKE2B 4b44430f7854fca70f650c31388b9d378218d6d4ed116659522542a0e199a19c65e152a4b7235ad5f5fe86753c3ee834ea162da9ff889e384bee780a61a39c42 SHA512 9237d03c3cc2374b1e3631f63ac850fc2461628785863c909972c85b74d9fd3c75dc286e0953059c1999457d2a43b474b1ec7b8c633e158aeb88f89e02e874f8
DIST kubernetes-1.28.0.tar.gz 42229948 BLAKE2B c514577fa3cdeee6fa1d6f488de74b56845e3cfaf7f810ecd4ec9c023f034e0c50b647ebf5b60eb26b9387b79d060a6aeee9eee43fab904094ec767603fc5c6d SHA512 dcb5f2ec3fec841a3a1678ac88473b355f13cad1543b5098a2f1fe1d217e34fb46727c1345bbd35945eb4164aa4fe069ebdefc2328c8797671caa9a5be0f8fd6
+DIST kubernetes-1.28.1.tar.gz 39881720 BLAKE2B 9f56e1a9d2c45948c3c4baca99b16e8b73cb2e375088b9d3badd1664ebd178a052855c235637ac2f596cbb02ec440958710f39bd5dbd34e37f74c4260dd8cf65 SHA512 cc28483e09f7a3861bf1b8f7867e3295f8879a2c0a2a851ce14f41158c8ea3cb080ae697dc897d8a55efd3a7f0dcbfcca2d39dff6fd9ca0dd1b5762c1010fb09
diff --git a/sys-cluster/kubelet/kubelet-1.28.1.ebuild b/sys-cluster/kubelet/kubelet-1.28.1.ebuild
new file mode 100644
index 000000000000..cd8a1735b583
--- /dev/null
+++ b/sys-cluster/kubelet/kubelet-1.28.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module systemd
+
+DESCRIPTION="Kubernetes Node Agent"
+HOMEPAGE="https://kubernetes.io"
+SRC_URI="https://github.com/kubernetes/kubernetes/archive/v${PV}.tar.gz -> kubernetes-${PV}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="hardened selinux"
+
+BDEPEND=">=dev-lang/go-1.20"
+RDEPEND="selinux? ( sec-policy/selinux-kubernetes )"
+
+RESTRICT+=" test "
+S="${WORKDIR}/kubernetes-${PV}"
+
+src_compile() {
+ CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \
+ emake -j1 GOFLAGS="" GOLDFLAGS="" LDFLAGS="" WHAT=cmd/${PN}
+}
+
+src_install() {
+ dobin _output/bin/${PN}
+ keepdir /etc/kubernetes/manifests /var/log/kubelet /var/lib/kubelet
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}.logrotated ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+ insinto /etc/kubernetes
+ newins "${FILESDIR}"/${PN}.env ${PN}.env
+}