aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kubernetes/APKBUILD
blob: a35d985b8422cf35d485d2f852ee63f41279fce0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Contributor: Mateusz MikuĊ‚a <matti@marinelayer.io>
# Contributor: Tiago Ilieve <tiago.myhro@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=kubernetes
pkgver=1.14.2
pkgrel=0
pkgdesc="Container Cluster Manager for Docker"
url="https://kubernetes.io/"
arch="x86_64"
license="Apache-2.0"
options="!check" # Tests hang
depends="bash"
makedepends="coreutils findutils go linux-headers rsync grep"
source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes/kubernetes/archive/v$pkgver.tar.gz
	ensure-cgo-usage.patch
	make-e2e_node-run-over-distro-bins.patch
	make-test-cmd-run-over-hyperkube-based-kubectl.patch
	remove-apiserver-add-kube-prefix-for-hyperkube.patch
	add-openrc-support.patch
	"

build() {
	KUBE_VERBOSE=2 make -j1
}

package() {
	local binaries="hyperkube
			kube-apiserver
			kube-controller-manager
			kube-scheduler
			kubeadm
			kubectl
			kubelet
			kube-proxy"
	for bin in $binaries; do
		install -Dm755 _output/local/bin/linux/amd64/$bin "$pkgdir"/usr/bin/$bin
	done
	install -d $pkgdir/var/lib/kubelet
}

sha512sums="921e3db96c1464906a44f15733067f038c7759737a603cb305671fb311cc12f892751afffa789ce7990b1168e7b42b01a5510f52ff5bc66d618782817437b08e  kubernetes-1.14.2.tar.gz
bfe072d2f53543b8d704319755f3cfe5ed2467b54879e22117a25a9d7d6d4d238356e45824deaf4d18b8e9eb6f34d1de43be4840b9906f7909478ffe9e8a65ff  ensure-cgo-usage.patch
8faa8f1c777740ed33ac4e46e8e47e9092098b6e672cf57a10caab2212b9b5c6965361fe7107d1311227e6145e2ad312982dc0340feb36b03ebb04e1202366f0  make-e2e_node-run-over-distro-bins.patch
d2d50f869160c266ec677be58f0401fb6446129de3e194b4c8599a6a8000d42290de553ee07b488fcdda80ffe94c640e0846ffbd7fbca94c5684d5f373e4c9f3  make-test-cmd-run-over-hyperkube-based-kubectl.patch
100d439c8c5114fc8ac5e2c40f536b89b6165907e94112358365901e57329f5c813c5bf8ea5da5aba71574efb973bc028cafb7b168f50c9fa5a6b019c31c3884  remove-apiserver-add-kube-prefix-for-hyperkube.patch
8aec0a1cda24fcd7001e34ff6163aee7eaf679dea953068b58df3578c016f70e1406903e032a51519bc16ac0dbe583159d1cf4d504adbb2930d811cc2f762cfe  add-openrc-support.patch"