summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2023-05-19 11:05:00 -0500
committerWilliam Hubbs <williamh@gentoo.org>2023-05-19 11:05:00 -0500
commit91988ee1217018df8a3649eed48841952f24ff45 (patch)
treed8ef409feb5770c5cf01885f57f76be559eede59 /sys-cluster
parentsys-cluster/kube-controller-manager: add 1.27.2 (diff)
downloadgentoo-91988ee1217018df8a3649eed48841952f24ff45.tar.gz
gentoo-91988ee1217018df8a3649eed48841952f24ff45.tar.bz2
gentoo-91988ee1217018df8a3649eed48841952f24ff45.zip
sys-cluster/kubectl: add 1.27.2
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/kubectl/Manifest1
-rw-r--r--sys-cluster/kubectl/kubectl-1.27.2.ebuild33
2 files changed, 34 insertions, 0 deletions
diff --git a/sys-cluster/kubectl/Manifest b/sys-cluster/kubectl/Manifest
index 3ba52181aa43..ab7ff0fc64c0 100644
--- a/sys-cluster/kubectl/Manifest
+++ b/sys-cluster/kubectl/Manifest
@@ -5,3 +5,4 @@ DIST kubernetes-1.25.9.tar.gz 38197577 BLAKE2B f90e8e6fff4ada4b36b16623463e99de2
DIST kubernetes-1.26.4.tar.gz 38229656 BLAKE2B 1da5b7c380d27d57f6c6200f5b65b9a469c9d6663713742bc2f32746bad2eea17bb8265df009d625011f1e036d768e26bda514634aacc13b2997bb7c70684f3e SHA512 185d21368f84a1e1829578c7552922db098d2caecd2c1d95c5da259a107009960ef44c2dd42eec4dab50c4c59a8d5ae0b4dd45fc6f106b27138e1a1d7391626d
DIST kubernetes-1.26.5.tar.gz 38241396 BLAKE2B e42ffb2396b9811cf23f861327fdd93d067e43b222971b3fb115679692f8923c11494ac7c1bd8ed8a13cfe95b3964e33dc030405d2a3deb19e04c843f75eb7b0 SHA512 d35e663e469d29c77abfae443c8f835103e230805331a98ed6314518bd937c366e2734c687c31c4eadf7ecbd0a607dece463edb0057270a37114681d8aa77f0b
DIST kubernetes-1.27.1.tar.gz 38048443 BLAKE2B c5475209ef4bcad704a6075392180496e4ec9f63af26038cb22b0f28effeab8eafe734c330c80e86d0aaabf125bec5f134cd1479ce54fd6437b3aeeaec8fb352 SHA512 20d2b8f3c892884a1abd5e30320f3cf50ada79c3b68409c6d626278e42d031e960057b042aade93b55b3185623c5bdcfef9a16602e7f3c4a71be8cee517e7ba1
+DIST kubernetes-1.27.2.tar.gz 38061986 BLAKE2B bbb39453cb642abc693a8b646179eb5ccf6886c37cf380ae139c096409a33c38d5d081007a009a4785498f600b89f91a430b7bde191298b108ada336ef3414b1 SHA512 c7a4f6f3e3e6ce66295e9c09b5214ed3b9fa3b674b0b7e200672da5873fbc75533d1e6a5d9e04edba09c81db35e3309dbe6ff6a4a9dffc6687c66a6e5e566b1d
diff --git a/sys-cluster/kubectl/kubectl-1.27.2.ebuild b/sys-cluster/kubectl/kubectl-1.27.2.ebuild
new file mode 100644
index 000000000000..ffa067f3b06c
--- /dev/null
+++ b/sys-cluster/kubectl/kubectl-1.27.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit bash-completion-r1 go-module
+
+DESCRIPTION="CLI to run commands against Kubernetes clusters"
+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"
+
+BDEPEND=">=dev-lang/go-1.20"
+
+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}
+ _output/bin/${PN} completion bash > ${PN}.bash || die
+ _output/bin/${PN} completion zsh > ${PN}.zsh || die
+ newbashcomp ${PN}.bash ${PN}
+ insinto /usr/share/zsh/site-functions
+ newins ${PN}.zsh _${PN}
+}