summaryrefslogtreecommitdiff
path: root/sys-cluster
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-29 03:06:05 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-29 03:06:05 +0100
commit66cd90d4284850abdf808a598a77040bcda88bd8 (patch)
tree3b4bd42297b8217b23f041cb09d7fe3832537e6c /sys-cluster
parent9403c20e10161812ed5231e7fd14464ca484aa09 (diff)
gentoo auto-resync : 29:07:2022 - 03:06:05
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/Manifest.gzbin11053 -> 11054 bytes
-rw-r--r--sys-cluster/kube-router/Manifest7
-rw-r--r--sys-cluster/kube-router/files/kube-router.confd3
-rw-r--r--sys-cluster/kube-router/files/kube-router.initd6
-rw-r--r--sys-cluster/kube-router/kube-router-1.5.0.ebuild37
5 files changed, 47 insertions, 6 deletions
diff --git a/sys-cluster/Manifest.gz b/sys-cluster/Manifest.gz
index 1e9624eb0d72..9d3264298731 100644
--- a/sys-cluster/Manifest.gz
+++ b/sys-cluster/Manifest.gz
Binary files differ
diff --git a/sys-cluster/kube-router/Manifest b/sys-cluster/kube-router/Manifest
index dec620e17514..7f57b5400824 100644
--- a/sys-cluster/kube-router/Manifest
+++ b/sys-cluster/kube-router/Manifest
@@ -1,8 +1,11 @@
-AUX kube-router.confd 320 BLAKE2B a3b4973007bab2d7b4bf4f21beb85c59adb0d66b2dd4bf1152d7818b1039e74624e0a2255123cbdace8e419aed1e0a9e87ba3c6b7fa7263cb4667fcabce6829b SHA512 cc150ad9dae389011449c31541a326625f781ead15cc12502bdb5704b13921e0a4a740abb27fafb7dc260c6d66f44e855ecf5ef1300077377a9aa0a08f50db1c
-AUX kube-router.initd 963 BLAKE2B 5226134d18790b246bcd516f72f54f992ebc61f69799a730e095e65bc4c805494d8760ec0ce9f564c8ee7856379993cf18b9e5ce3d10c25afbbc0937b1d075b8 SHA512 f6c41ae0ff20abd1e1f29ede282f49fad0112fa634104b6603d5a1d78ff6457e5739956b2e28353f2b21964b5ec11158626b1cbbb8cea510cdb5463a062e8d63
+AUX kube-router.confd 385 BLAKE2B 7e99600ca1301cd925bf61d7db605c01bd923ad998745abdc052c75736bc14f8b9f38b37fceaac0f920156622ddd31a6302a033e5fe4635ab278f309047b1a27 SHA512 0a1c02c52b4ece2eb57ab7d464dbfa2e6f8d056dbb437a220825456ca651d64bf4f01efffb63054ba8913050e7e882a6f57875d4e2b6abd877c47a3682c02ea4
+AUX kube-router.initd 979 BLAKE2B 81e7cf641dc4468325c8d883ffd73be88da433da5309efdcb153901dec5df7aded515608fbeba0e391a0ed655e2c3dcf9d0606ad67abff9905ad667afffbc5bc SHA512 b61ed530b73c6d788eb55e74f75829d451638f1ccf51c85c3cc23e4c34ef19da4bfb1063abf59dacb88c26389d9c76713690fe7fa7c4b893b5dd4b6c30883e81
AUX kube-router.logrotated 85 BLAKE2B 41c40f60ee686f7387e01c85345e6d8d3c562df2363ba3963a0f465d70a3439d2496931b94f05a1c607d04d4269fd087a4c0e1fd9c3a6f7db89d33bbc366bb30 SHA512 19e92adbc5ff8548784481cdc63d8010c386ea799350d7426c22f9b71c09c4ec9b1ec0a7e08069e1fb5cb51b0a37435ae42b12caf2d8679f2cb892fdc6bf96e1
DIST kube-router-1.1.1.tar.gz 8155406 BLAKE2B c036f94eb8e938d37fcc62c58d64c718493d730e0b3fec9ecc2287a772f9890cf63b9728c3c8b0eae00098173e237b91a3dc8801029ed026800b5df3076e7d5a SHA512 172921e999cd9634663ec522623259ad9b64ce18506b8358d90547714f64a5c0b73598f8da402e1f4ecdabb3f4d5602e784f27a55747a7d4d2c47c42f51abfef
DIST kube-router-1.2.2.tar.gz 8929524 BLAKE2B 246cfbea3a2520109cad1507bda22cb72c2e1625b05d815cda0e014fee634c93a85d1647c8fd4f84aa6f3b8c3e899e215a7cdda7f4c7521f5e44f1c0b85f8251 SHA512 7dc6732b9cfc77fca9fc2fec49716d4bd3eab749089f5a86af66a2c16439e662505dbe0f009c087f85fb7e20393e11f4c007b49c40cfdaabf3b5fcfeac424999
+DIST kube-router-1.5.0-deps.tar.xz 110558264 BLAKE2B f65d75422dd2b8057cb448a7f3c0c70e66768d83f1939496b465c5ffabc7870f56bcde4234affdc15e963f9f61b3025df7d1f98d704f5262ce07ae42308b3040 SHA512 532f560e3431ba36dd8ef36ce6529cb17dc51e6434535f5b58bac3f81c525cf1934c275a2abf80b4606ea831b289660ef8a53f0326780eb45862bc1a1f2401a6
+DIST kube-router-1.5.0.tar.gz 1558200 BLAKE2B b019ffa912a57411e68b03349eafb87a61108d1f63eaad943bc926e6a27b30ac92faf72e0a29f3b1790cd524b0755c2148bf0a7b9e18511012a79657579388ed SHA512 c9fe5977072054c9782c1ef405182b671032e59fddef81e295fec46817c018a3c3eb23b89ee293d3dc9a8645f8d161e337ea19ac1d9da483200ed4c92babe5a4
EBUILD kube-router-1.1.1.ebuild 933 BLAKE2B 8ade85c07e6663f990166fc790fd1fdfa727a81a98b7a05e43b40be79e1b9d33380c5a1e2a50d177af1253c4c2deb63232d71182a15c820e648c365d899a407b SHA512 6cfa18ec1fb750bed13bf2e263c3a72483e97e658a04cee4347b1df80da6e1c9ad3ce963be223b5ca8eb839c191095f4bfd30558a33de773d70c8188bbc6d299
EBUILD kube-router-1.2.2.ebuild 933 BLAKE2B 8ade85c07e6663f990166fc790fd1fdfa727a81a98b7a05e43b40be79e1b9d33380c5a1e2a50d177af1253c4c2deb63232d71182a15c820e648c365d899a407b SHA512 6cfa18ec1fb750bed13bf2e263c3a72483e97e658a04cee4347b1df80da6e1c9ad3ce963be223b5ca8eb839c191095f4bfd30558a33de773d70c8188bbc6d299
+EBUILD kube-router-1.5.0.ebuild 965 BLAKE2B 96be835fd6b1490fadc48690747c3ac008153fd035b1c50e78e92008f228bd827396d3846a5118228b6f2f66bba390f3e087420083a8e8b3defdf39d4652dae7 SHA512 6183e74d82ab6c99e6213b2880ca64b7ff132bcba95da51d7ca7386160a285d2c75068549e41354184eff8ee1ededb9d059490d06dd9a0a498aedfd7382d9a57
MISC metadata.xml 707 BLAKE2B 997b3d35c2fee48dbf2795620d2f6b4f5d4e25ba710c11e2cb7d9aff3fa2117216a28f581c4bbb7d52963f1a484c64f69afbc1d0bf01fc788a72a0d9a625c38c SHA512 de3ee57f45927fda13d9539684f9108f9f1361320534ce1a8c8d33b79c080ccf4881bc138c4763fedc11d244521068c6a53474c5569e2b0bf2684347e800677f
diff --git a/sys-cluster/kube-router/files/kube-router.confd b/sys-cluster/kube-router/files/kube-router.confd
index a5f20a581c4c..601368deaf1e 100644
--- a/sys-cluster/kube-router/files/kube-router.confd
+++ b/sys-cluster/kube-router/files/kube-router.confd
@@ -2,7 +2,8 @@
# KUBECONFIG=/etc/kubernetes/kube-router.kubeconfig
# Leave empty to autodetect:
-# HOSTNAME=
+# HOSTNAME is a bashism, so change to HOSTNAME_OVERRIDE
+# HOSTNAME_OVERRIDE=
# RUN_PROXY=true
# RUN_FIREWALL=true
diff --git a/sys-cluster/kube-router/files/kube-router.initd b/sys-cluster/kube-router/files/kube-router.initd
index 9b96ec024f66..11645e0abc5d 100644
--- a/sys-cluster/kube-router/files/kube-router.initd
+++ b/sys-cluster/kube-router/files/kube-router.initd
@@ -5,14 +5,14 @@
description="Kubernetes routing engine"
supervisor=supervise-daemon
command="/usr/bin/kube-router"
-error_log='/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log'
+error_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
pidfile="${pidfile:-/run/${RC_SVCNAME}.pid}"
command_args="--master=${K8S_APISERVER} --kubeconfig=${KUBECONFIG} \
--run-service-proxy=${RUN_PROXY:-false} \
--run-firewall=${RUN_FIREWALL:-false} \
--run-router=${RUN_ROUTER:-false} \
- ${HOSTNAME:+--hostname-override=}${HOSTNAME} \
+ ${HOSTNAME_OVERRIDE:+--hostname-override=}${HOSTNAME_OVERRIDE} \
${EXTRA_ARGS}"
extra_commands="clear"
@@ -21,7 +21,7 @@ clear() {
"${command}" --cleanup-config
}
-if [[ -n "${KUBE_ROUTER_HEALTHCHECK_URI}" ]]; then
+if [ -n "${KUBE_ROUTER_HEALTHCHECK_URI}" ]; then
healthcheck_delay=60
healthcheck_timer=30
diff --git a/sys-cluster/kube-router/kube-router-1.5.0.ebuild b/sys-cluster/kube-router/kube-router-1.5.0.ebuild
new file mode 100644
index 000000000000..16fd7f0fbd51
--- /dev/null
+++ b/sys-cluster/kube-router/kube-router-1.5.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module
+
+DESCRIPTION="A turnkey solution for Kubernetes networking"
+HOMEPAGE="https://kube-router.io"
+SRC_URI="https://github.com/cloudnativelabs/kube-router/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
+
+LICENSE="Apache-2.0 MIT BSD BSD-2 MPL-2.0 ISC LGPL-3-with-linking-exception"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ net-firewall/iptables[conntrack]
+ net-firewall/ipset
+ sys-cluster/ipvsadm
+"
+
+src_compile() {
+ emake BUILD_IN_DOCKER=false GIT_COMMIT=v${PV} kube-router
+}
+
+src_test() {
+ ego test -v -timeout=30s ./cmd/kube-router ./pkg/...
+}
+
+src_install() {
+ dobin "${PN}"
+ einstalldocs
+ newinitd "${FILESDIR}"/kube-router.initd kube-router
+ newconfd "${FILESDIR}"/kube-router.confd kube-router
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/kube-router.logrotated kube-router
+}