summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2021-05-15 14:38:50 -0500
committerWilliam Hubbs <williamh@gentoo.org>2021-05-15 14:40:25 -0500
commitd71207cba1b3ad0bbfce4fc65730f9ecc0d54865 (patch)
tree59d422cef17357c06cdf5f67977ecbf434a3a3dd /sys-cluster
parentsys-cluster/kube-controller-manager: 1.21.1 bump (diff)
downloadgentoo-d71207cba1b3ad0bbfce4fc65730f9ecc0d54865.tar.gz
gentoo-d71207cba1b3ad0bbfce4fc65730f9ecc0d54865.tar.bz2
gentoo-d71207cba1b3ad0bbfce4fc65730f9ecc0d54865.zip
sys-cluster/kubectl: 1.21.1 bump
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.21.1.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/sys-cluster/kubectl/Manifest b/sys-cluster/kubectl/Manifest
index 0742de6eede2..e13f05ef87fc 100644
--- a/sys-cluster/kubectl/Manifest
+++ b/sys-cluster/kubectl/Manifest
@@ -5,3 +5,4 @@ DIST kubernetes-1.19.11.tar.gz 33549052 BLAKE2B 5c17aae668a1e8c2eb656330a990786e
DIST kubernetes-1.20.6.tar.gz 34478669 BLAKE2B 82e3aac07e9f360cda6854f4ff51082e96648c1a78888a6dd43530b31404089cd1eaa2805fa9896dfa1bdef03ebdd04b6dda8ba948d8b16be28534390554da5e SHA512 b3df8266c597b3e2270e7caea24129ebc8fa258e32e747c1e48ede5ad0244c791f9da39bcaf7c08df8c1b314976742db23ecaa4623ab241f87a80d4834a0948f
DIST kubernetes-1.20.7.tar.gz 34486823 BLAKE2B b0467ecb4527a6de3955185ea377248bbf0b83624af8afd4bf8f33cb2a5e33d0433ea98b3f984a38c59ad9fd6a8cf3e8124eadc81cbe337ca7bc4bce53d4f9ed SHA512 ccb8ac6f1d9535791386ee73ba5008180e1a77fcdc320363248037117547eb6c59d25c46ea1d5bb49043717e2b6a1796470b3b677229a7a40fd6cd1f4b8ab695
DIST kubernetes-1.21.0.tar.gz 37484462 BLAKE2B 78ae44985eccf9e17d58ccb3f9c98dcc469059e17375b016d82df6d5ce02451e0bcac49cdd89d5ae82bd718191e83fbf6e128ae3a4d14569460febd0c027edf3 SHA512 f5928f5aad0ce1dee7db145a798c5038aa5ca085a09ba9a2da5cabb36c54f2adc86ec5948d4cf344544c45c29d18e7b9f04bf14c4a91aab637c7244fcf3f80d8
+DIST kubernetes-1.21.1.tar.gz 35982846 BLAKE2B 3852fbaa07b622561f88cd1821b87fe08e04a34cbf4538f63c2ed325789c9263eddc8844a35eae3394795abd25096bdfa00df7584d5fc7006886bc3099924de2 SHA512 d3257566a07e1c08bfcbce85775af8c2d7dfbc7df4aa8692e6a0a6f8590f7eeb9fc6802b715ee8b0f67b2f41344e926a0a955afa68e2b8d518a7d8160771dfcc
diff --git a/sys-cluster/kubectl/kubectl-1.21.1.ebuild b/sys-cluster/kubectl/kubectl-1.21.1.ebuild
new file mode 100644
index 000000000000..5603ed030db7
--- /dev/null
+++ b/sys-cluster/kubectl/kubectl-1.21.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+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"
+
+DEPEND="!sys-cluster/kubernetes"
+BDEPEND=">=dev-lang/go-1.16"
+
+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}
+}