summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-cluster/kubeadm/Manifest1
-rw-r--r--sys-cluster/kubeadm/kubeadm-1.20.2.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/sys-cluster/kubeadm/Manifest b/sys-cluster/kubeadm/Manifest
index 6c0c1bc89bbc..6191743a2330 100644
--- a/sys-cluster/kubeadm/Manifest
+++ b/sys-cluster/kubeadm/Manifest
@@ -4,3 +4,4 @@ DIST kubernetes-1.18.15.tar.gz 32665949 BLAKE2B 7a99a5fdbc51bb89fe5c61eb35b7d89e
DIST kubernetes-1.19.6.tar.gz 33470206 BLAKE2B ea7614da380ce7c834884d96b37753802eb4919b4fb274dabf0d38f0438039c90ab1fccc86e0d8f665c15ae61f1d3f6ce4d400782ed580033cfd58390cd50617 SHA512 d7c6db2fa399b04a3acae792546fa0384e6b3a3e5eaa2c1ba6c49d656da0197f5be3d009756313436816f3839825c66ce23a06a1ec35c37f1c3fcfba79f9ac32
DIST kubernetes-1.19.7.tar.gz 33481861 BLAKE2B de83b13ebc10f96cdcc6bbf4015db35740c4c3e821cc263669f5ac63ff69bc674106cacd95e0bfde165c4fa2b6d7b6dfcbb94654e1551ab3bd43c8aff00ae3ce SHA512 1fc0d6820a9486a81242e25e7cd034537110fe10fa1aadc89be115a16441d50913ea1add1c1364a5f8e4d9255ef3e619a75c45e43b853d1c6038d6af66473ad1
DIST kubernetes-1.20.1.tar.gz 34424663 BLAKE2B 156482f88f051eeea0c428c357a79d876ff0ce5f8ed6eb1ffa72be83bff45b72970280fa1bc7629804c178b9fa45ad84a9961a4f0e7eca1b58351fc7d7f4cfc0 SHA512 40598999cc5c96c54591338eb985bc056892ef2f98cfb521ff26937fa29f63a20e97f52a8454433ff98614d579509b7a5e927edcd96f4725505a334a999c0326
+DIST kubernetes-1.20.2.tar.gz 34428927 BLAKE2B d49ddbe95f377320261aeca655bea2fb375f134bac32f594ad5d2ee8c349d946f267257888375a3d5184140d5a7d2eddc759e25f633b771e2803595838fcd60f SHA512 7459825ead1435135dbd8f226cba7fc9698771809447067f14742a444073bd6933bb936d053eb70c7745edf8360c1e5e6f835cf3956abc78d3ac26447279a36c
diff --git a/sys-cluster/kubeadm/kubeadm-1.20.2.ebuild b/sys-cluster/kubeadm/kubeadm-1.20.2.ebuild
new file mode 100644
index 000000000000..192287ce82c9
--- /dev/null
+++ b/sys-cluster/kubeadm/kubeadm-1.20.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit bash-completion-r1 go-module
+
+DESCRIPTION="CLI to Easily bootstrap a secure Kubernetes cluster"
+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"
+
+RDEPEND="!sys-cluster/kubernetes"
+BDEPEND=">=dev-lang/go-1.15"
+
+RESTRICT+=" test"
+S="${WORKDIR}/kubernetes-${PV}"
+
+src_compile() {
+ CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \
+ emake -j1 GOFLAGS=-v 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}
+}