mirror of https://github.com/k3s-io/k3s
Remove duplicated detect-master for local
cluster/local/util.sh contains duplicated detect-master() and the first one is unused at all. This removes the first one for the code cleanup.pull/8/head
parent
1da4c59e46
commit
2bdae8f3d0
|
@ -18,13 +18,7 @@ function prepare-e2e() {
|
||||||
echo "Local doesn't need special preparations for e2e tests" 1>&2
|
echo "Local doesn't need special preparations for e2e tests" 1>&2
|
||||||
}
|
}
|
||||||
|
|
||||||
# Must ensure that the following ENV vars are set
|
|
||||||
function detect-master {
|
function detect-master {
|
||||||
export KUBE_MASTER_IP="127.0.0.1"
|
|
||||||
export KUBE_MASTER="localhost"
|
|
||||||
}
|
|
||||||
|
|
||||||
detect-master() {
|
|
||||||
KUBE_MASTER=localhost
|
KUBE_MASTER=localhost
|
||||||
KUBE_MASTER_IP=127.0.0.1
|
KUBE_MASTER_IP=127.0.0.1
|
||||||
KUBE_MASTER_URL="http://${KUBE_MASTER_IP}:8080"
|
KUBE_MASTER_URL="http://${KUBE_MASTER_IP}:8080"
|
||||||
|
|
Loading…
Reference in New Issue