Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/kubeadm/
Date: Mon, 14 Jan 2019 14:34:22
Message-Id: 1547476438.5853d927bfeaa19de0843b7c73a17144d123e0fa.mrueg@gentoo
1 commit: 5853d927bfeaa19de0843b7c73a17144d123e0fa
2 Author: Dan Molik <dan <AT> danmolik <DOT> com>
3 AuthorDate: Fri Jan 11 15:03:28 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 14 14:33:58 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5853d927
7
8 sys-cluster/kubeadm: New Package
9
10 kubeadm is the new stable tool for standing up kubernetes clusters. It
11 reached general availability in 1.13.0 and is positioned to become the
12 go to tool to bootstap kuberentes clusters.
13
14 Package-Manager: Portage-2.3.55, Repoman-2.3.12
15 Signed-off-by: Dan Molik <dan <AT> danmolik.com>
16 Tested-by: Dan Molik <dan <AT> danmolik.com>
17 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
18
19 sys-cluster/kubeadm/Manifest | 1 +
20 sys-cluster/kubeadm/kubeadm-1.13.2.ebuild | 47 +++++++++++++++++++++++++++++++
21 sys-cluster/kubeadm/metadata.xml | 30 ++++++++++++++++++++
22 3 files changed, 78 insertions(+)
23
24 diff --git a/sys-cluster/kubeadm/Manifest b/sys-cluster/kubeadm/Manifest
25 new file mode 100644
26 index 00000000000..5ecce56fc15
27 --- /dev/null
28 +++ b/sys-cluster/kubeadm/Manifest
29 @@ -0,0 +1 @@
30 +DIST kubernetes-1.13.2.tar.gz 28771642 BLAKE2B 4a5c5a8e0c05faab3fb6a26854e7c8643b893c2a1f5d5b56aacea869d86426dffe358222034b826d66dfd19855bee71cad7356ff483c27218019e4adda499ce7 SHA512 2f24119fc21d7bdbb60174b46da94ce3f2f6a3c638e9d96323c93c20039aeb06f9c9a3a48c43bb36b71eff25cf72967e780e3339b35ad7ad7a7a7c35662c96bd
31
32 diff --git a/sys-cluster/kubeadm/kubeadm-1.13.2.ebuild b/sys-cluster/kubeadm/kubeadm-1.13.2.ebuild
33 new file mode 100644
34 index 00000000000..6c4b699b759
35 --- /dev/null
36 +++ b/sys-cluster/kubeadm/kubeadm-1.13.2.ebuild
37 @@ -0,0 +1,47 @@
38 +# Copyright 1999-2019 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=6
42 +inherit golang-build golang-vcs-snapshot bash-completion-r1
43 +
44 +EGO_PN="k8s.io/kubernetes"
45 +ARCHIVE_URI="https://github.com/kubernetes/kubernetes/archive/v${PV}.tar.gz -> kubernetes-${PV}.tar.gz"
46 +KEYWORDS="~amd64"
47 +
48 +DESCRIPTION="CLI to Easily bootstrap a secure Kubernetes cluster"
49 +HOMEPAGE="https://github.com/kubernetes/kubernetes https://kubernetes.io"
50 +SRC_URI="${ARCHIVE_URI}"
51 +
52 +LICENSE="Apache-2.0"
53 +SLOT="0"
54 +IUSE=""
55 +
56 +DEPEND=">=dev-lang/go-1.11
57 + dev-go/go-bindata"
58 +
59 +RESTRICT="test"
60 +
61 +src_prepare() {
62 + default
63 + sed -i -e "/vendor\/github.com\/jteeuwen\/go-bindata\/go-bindata/d" -e "s/-s -w/-w/" src/${EGO_PN}/hack/lib/golang.sh || die
64 + sed -i -e "/export PATH/d" src/${EGO_PN}/hack/generate-bindata.sh || die
65 +}
66 +
67 +src_compile() {
68 + LDFLAGS="" GOPATH="${WORKDIR}/${P}" emake -j1 -C src/${EGO_PN} WHAT=cmd/${PN} GOFLAGS=-v
69 + pushd src/${EGO_PN} || die
70 + _output/bin/${PN} completion bash > ${PN}.bash || die
71 + _output/bin/${PN} completion zsh > ${PN}.zsh || die
72 + popd || die
73 +}
74 +
75 +src_install() {
76 + pushd src/${EGO_PN} || die
77 + dobin _output/bin/${PN}
78 +
79 + newbashcomp ${PN}.bash ${PN}
80 + insinto /usr/share/zsh/site-functions
81 + newins ${PN}.zsh _${PN}
82 +
83 + popd || die
84 +}
85
86 diff --git a/sys-cluster/kubeadm/metadata.xml b/sys-cluster/kubeadm/metadata.xml
87 new file mode 100644
88 index 00000000000..c1a4c821066
89 --- /dev/null
90 +++ b/sys-cluster/kubeadm/metadata.xml
91 @@ -0,0 +1,30 @@
92 +<?xml version='1.0' encoding='UTF-8'?>
93 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
94 +<pkgmetadata>
95 + <maintainer type="person">
96 + <email>dan@××××××××.com</email>
97 + <name>Dan Molik</name>
98 + </maintainer>
99 + <maintainer type="person">
100 + <email>mrueg@g.o</email>
101 + <name>Manuel Rüger</name>
102 + </maintainer>
103 + <maintainer type="project">
104 + <email>proxy-maint@g.o</email>
105 + <name>Proxy Maintainers</name>
106 + </maintainer>
107 + <longdescription lang="en">
108 + kubeadm performs the actions necessary to get a minimum viable cluster up
109 + and running. By design, it cares only about bootstrapping, not about
110 + provisioning machines. Likewise, installing various nice-to-have addons,
111 + like the Kubernetes Dashboard, monitoring solutions, and cloud-specific
112 + addons, is not in scope.
113 +
114 + Instead, we expect higher-level and more tailored tooling to be built on
115 + top of kubeadm, and ideally, using kubeadm as the basis of all deployments
116 + will make it easier to create conformant clusters.
117 + </longdescription>
118 + <upstream>
119 + <remote-id type="github">kubernetes/kubernetes</remote-id>
120 + </upstream>
121 +</pkgmetadata>