summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2024-08-22 19:53:50 -0500
committerWilliam Hubbs <williamh@gentoo.org>2024-08-22 19:53:50 -0500
commit7b87c966f604666ae6740a366f35816031f14649 (patch)
treea48453afc2355a3c7be9db742116e1f34a5db380 /sys-cluster
parentsys-cluster/kubeadm: add 1.30.4 (diff)
downloadgentoo-7b87c966f604666ae6740a366f35816031f14649.tar.gz
gentoo-7b87c966f604666ae6740a366f35816031f14649.tar.bz2
gentoo-7b87c966f604666ae6740a366f35816031f14649.zip
sys-cluster/kube-apiserver: add 1.30.4
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/kube-apiserver/Manifest1
-rw-r--r--sys-cluster/kube-apiserver/kube-apiserver-1.30.4.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/sys-cluster/kube-apiserver/Manifest b/sys-cluster/kube-apiserver/Manifest
index 90e1d2961e4c..d5f7e9ee46c5 100644
--- a/sys-cluster/kube-apiserver/Manifest
+++ b/sys-cluster/kube-apiserver/Manifest
@@ -6,3 +6,4 @@ DIST kubernetes-1.29.7.tar.gz 41180322 BLAKE2B bb107378b6879a87186f9366ec372a1e8
DIST kubernetes-1.29.8.tar.gz 41200139 BLAKE2B 82fe26e74fe2aea6fa854c4e018561ccb5e7528aee50c07dbf04029a92434ffda6bd177d890819d1fcb01ea3412d2cacc41620e27419a7d38d134131eba429c3 SHA512 c2a3c57819ca7537eb7021f0dee69d9f5f6b78a7f0959f217b79389b2e0156a859bbbceb829b3a7d63b7694d8316a52c83afd0ec159168e5bc2c317eb59ad6a8
DIST kubernetes-1.30.2.tar.gz 39581297 BLAKE2B 7d1f303d21b870ad29d2cac96626edc3a19addedd544624e5cd9f42beb368e0959e499e5fd88bc7ee491a01cd29573115d1e77dfb73098ea88204a2614f7b635 SHA512 73f87da96fae889805e3e8fe644228159746c139e907755ec8654dd2fe46bf4561c6c5bb015bd95a6a1f5ba9be2e193aea9bb43b37ce1d67fb4ba42a50b9dac8
DIST kubernetes-1.30.3.tar.gz 39587795 BLAKE2B ba6d819866247dd0d26cb014857d238075dc6beb9cfacfc4ecaccab9d88c4295189309d62e4856c0f4f6c57762b14bfa16fb6bd96548cb88f69dd350e00dbf59 SHA512 303c823f74ccc5c1685ec16ba3de9dbbe9614ddf19e279e43ee392a4ef04ee68400a3e0c2a839d6a3f43712fab426084037ed871e3e4caafe8b37999fd83b73a
+DIST kubernetes-1.30.4.tar.gz 39602012 BLAKE2B 36bb038a2c64ae9252e002a11b2e08930a48471022b00f45511c7b869c76f2de5b941207ee05b57a824a8b4a84b475c376ffb856e5486b532d1cd7413a79500a SHA512 09a562deb763d43578cf345d62be145ccc92e77be228b10184b1b2909716eed8cf2b0c20f6add195347653c2f42ed1c749a5f1c03a9b7dd0a5e0f1e21f32adc0
diff --git a/sys-cluster/kube-apiserver/kube-apiserver-1.30.4.ebuild b/sys-cluster/kube-apiserver/kube-apiserver-1.30.4.ebuild
new file mode 100644
index 000000000000..1e1f4ab1cbbe
--- /dev/null
+++ b/sys-cluster/kube-apiserver/kube-apiserver-1.30.4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit bash-completion-r1 go-module systemd
+
+DESCRIPTION="Kubernetes API server"
+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"
+
+COMMON_DEPEND="
+ acct-group/kube-apiserver
+ acct-user/kube-apiserver"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+BDEPEND=">=dev-lang/go-1.21.6"
+
+RESTRICT+=" test"
+S="${WORKDIR}/kubernetes-${PV}"
+
+src_compile() {
+ CGO_LDFLAGS="$(usex hardened '-fNO-PIC ' '')" FORCE_HOST_GO="yes" \
+ emake -j1 GOFLAGS=-v GOLDFLAGS="" LDFLAGS="" WHAT=cmd/${PN}
+}
+
+src_install() {
+ dobin _output/bin/${PN}
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}.logrotated ${PN}
+ keepdir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+}