Skip to content

Commit f288678

Browse files
authored
Merge pull request kubernetes#73261 from danielqsj/local
fix shellcheck in cluster/local
2 parents d0f79fc + f02a986 commit f288678

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

cluster/local/util.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,16 @@ function prepare-e2e() {
1818
echo "Local doesn't need special preparations for e2e tests" 1>&2
1919
}
2020

21+
# Detect the IP for the master
22+
#
23+
# Vars set:
24+
# KUBE_MASTER
25+
# KUBE_MASTER_IP
26+
# Vars exported:
27+
# KUBE_MASTER_URL
2128
function detect-master {
2229
KUBE_MASTER=localhost
2330
KUBE_MASTER_IP=127.0.0.1
24-
KUBE_MASTER_URL="http://${KUBE_MASTER_IP}:8080"
31+
export KUBE_MASTER_URL="http://${KUBE_MASTER_IP}:8080"
2532
echo "Using master: $KUBE_MASTER (external IP: $KUBE_MASTER_IP)"
2633
}

hack/.shellcheck_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
./cluster/kubemark/gce/config-default.sh
2525
./cluster/kubemark/iks/config-default.sh
2626
./cluster/kubemark/util.sh
27-
./cluster/local/util.sh
2827
./cluster/log-dump/log-dump.sh
2928
./cluster/pre-existing/util.sh
3029
./cluster/restore-from-backup.sh

0 commit comments

Comments
 (0)