summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2022-07-28 15:11:17 -0500
committerWilliam Hubbs <williamh@gentoo.org>2022-07-28 15:11:17 -0500
commit37327358a8701680c926e62265c29b248eff50ad (patch)
tree7e22eeb42bd9262ae82892c38b074f20c494c653 /sys-cluster/kube-router
parentsys-cluster/kube-router: add 1.5.0 (diff)
downloadgentoo-37327358a8701680c926e62265c29b248eff50ad.tar.gz
gentoo-37327358a8701680c926e62265c29b248eff50ad.tar.bz2
gentoo-37327358a8701680c926e62265c29b248eff50ad.zip
sys-cluster/kube-router: make service script POSIX compatible
Closes: https://bugs.gentoo.org/852080 Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'sys-cluster/kube-router')
-rw-r--r--sys-cluster/kube-router/files/kube-router.confd3
-rw-r--r--sys-cluster/kube-router/files/kube-router.initd4
2 files changed, 4 insertions, 3 deletions
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..de39cd76de9b 100644
--- a/sys-cluster/kube-router/files/kube-router.initd
+++ b/sys-cluster/kube-router/files/kube-router.initd
@@ -12,7 +12,7 @@ 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