From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A598A1584F2 for ; Fri, 14 Mar 2025 13:52:48 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 9175D3431B2 for ; Fri, 14 Mar 2025 13:52:48 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 3AC1C1103D5; Fri, 14 Mar 2025 13:52:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 343DF1103CF for ; Fri, 14 Mar 2025 13:52:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DCC0C34308A for ; Fri, 14 Mar 2025 13:52:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D7231261E for ; Fri, 14 Mar 2025 13:52:34 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1741960307.4ba5bf0a38a9a79a3a42c3f223bb4eaaaff1cd48.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/kube-controller-manager/files/, sys-cluster/kube-controller-manager/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/kube-controller-manager/Manifest sys-cluster/kube-controller-manager/files/kube-controller-manager.service sys-cluster/kube-controller-manager/kube-controller-manager-1.32.3.ebuild X-VCS-Directories: sys-cluster/kube-controller-manager/files/ sys-cluster/kube-controller-manager/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 4ba5bf0a38a9a79a3a42c3f223bb4eaaaff1cd48 X-VCS-Branch: master Date: Fri, 14 Mar 2025 13:52:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 527165c2-4bd6-4520-ab8d-bdee0eda7463 X-Archives-Hash: e584a3b5793585f67363d1a657177361 commit: 4ba5bf0a38a9a79a3a42c3f223bb4eaaaff1cd48 Author: Arthur Zamarin gentoo org> AuthorDate: Fri Mar 14 13:47:19 2025 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Mar 14 13:51:47 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ba5bf0a sys-cluster/kube-controller-manager: add 1.32.3, add systemd unit Closes: https://bugs.gentoo.org/695300 Signed-off-by: Arthur Zamarin gentoo.org> sys-cluster/kube-controller-manager/Manifest | 1 + .../files/kube-controller-manager.service | 15 ++++++++ .../kube-controller-manager-1.32.3.ebuild | 41 ++++++++++++++++++++++ 3 files changed, 57 insertions(+) diff --git a/sys-cluster/kube-controller-manager/Manifest b/sys-cluster/kube-controller-manager/Manifest index e9987ce53387..9490e6033260 100644 --- a/sys-cluster/kube-controller-manager/Manifest +++ b/sys-cluster/kube-controller-manager/Manifest @@ -7,3 +7,4 @@ DIST kubernetes-1.31.5.tar.gz 36577053 BLAKE2B bda8223b667bbf9153b9c0d383715d565 DIST kubernetes-1.31.6.tar.gz 36582120 BLAKE2B f2b27c89d8a8fb442fcd7487af23016776c90ec9f2cfd0c699e7f82341ee2c5a21409347e1b782f4199becd5459ed5c96345c1726bfd5147499d7dfee21c2aa2 SHA512 cc27eedde442c185d9b08bbe25b1d7f189d93d0519b4d02ab47a711dc6345ac3c942cc82ede4026bd20fdabef71f8615df63d06ebd550c60acba6a595c4574b7 DIST kubernetes-1.32.1.tar.gz 36344641 BLAKE2B bd9c74dd30b257f70b8302d645754683df1202c3d7fa89a9966a0fc6c5f4b1daa1ddf7263848871d950a35626ae643575b45d6d960ad33ce209e69ad60167bb7 SHA512 060ebcd2b0b29391d9605cd059f2c5761f9f51c21e2bdd6d99f086e0e65f476c7d7dc3b4ad9b1507fe2c9d71e9ffbde2555ee67e2c2d7ba97d366af97f995322 DIST kubernetes-1.32.2.tar.gz 36352120 BLAKE2B 80e5792e86dab9a861238a50748e06f6f265f489f2ac703cd2306ed62855ecf44cdda750f519d47f82b58b4ff1254bcbe47ee25215a38360cab359d14fef75a9 SHA512 ec1102ec06e1789a1e2e9cc554b6c0dc0fbc811bb89d502e19dc8367f12a3f6ac4ba2731f1f3085bbc78ba144daaca95be6d1830ceddac512b0dac8608a5c45d +DIST kubernetes-1.32.3.tar.gz 36357402 BLAKE2B 084c653e9ee8e481508de6881e48bf852eb179769a7e8596c4b19f442d3b59291c2926e9b8d371aab7a5cc9b5cd7d66fbff342e57a8fc5dda2fb3cb299221ea0 SHA512 acc412079f45b9444a260c37cdb534abfc0618c413224e1e145eaa43504282e70a6d60cf863215e65e8310592ef6f7821168c38ea6c9af84e797027aee407147 diff --git a/sys-cluster/kube-controller-manager/files/kube-controller-manager.service b/sys-cluster/kube-controller-manager/files/kube-controller-manager.service new file mode 100644 index 000000000000..fe187f632963 --- /dev/null +++ b/sys-cluster/kube-controller-manager/files/kube-controller-manager.service @@ -0,0 +1,15 @@ +[Unit] +Description=Kubernetes Controller Manager service +Documentation=https://kubernetes.io/docs/concepts/architecture/#kube-controller-manager https://kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager/ +After=docker.service +Requires=docker.service + +[Service] +ExecStart=/usr/bin/kube-controller-manager +Restart=on-failure +KillMode=process +User=kube-controller-manager +Group=kube-controller-manager + +[Install] +WantedBy=multi-user.target diff --git a/sys-cluster/kube-controller-manager/kube-controller-manager-1.32.3.ebuild b/sys-cluster/kube-controller-manager/kube-controller-manager-1.32.3.ebuild new file mode 100644 index 000000000000..115c08143f25 --- /dev/null +++ b/sys-cluster/kube-controller-manager/kube-controller-manager-1.32.3.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +DESCRIPTION="Kubernetes Controller Manager" +HOMEPAGE="https://kubernetes.io" +SRC_URI="https://github.com/kubernetes/kubernetes/archive/v${PV}.tar.gz -> kubernetes-${PV}.tar.gz" +S=${WORKDIR}/kubernetes-${PV} + +LICENSE="Apache-2.0" +# Dependent licenses +LICENSE+=" Apache-2.0 BSD BSD-2 ISC MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="hardened" +RESTRICT="test" + +DEPEND="acct-group/kube-controller-manager + acct-user/kube-controller-manager" +RDEPEND="${DEPEND}" +BDEPEND=">=dev-lang/go-1.23.3" + +src_compile() { + CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \ + emake -j1 GOFLAGS="${GOFLAGS}" GOLDFLAGS="" LDFLAGS="" FORCE_HOST_GO=yes \ + WHAT=cmd/${PN} +} + +src_install() { + dobin _output/bin/${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}.logrotated ${PN} + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} +}