Commit 0e8d5152 authored by k8s-merge-robot's avatar k8s-merge-robot Committed by GitHub

Merge pull request #29373 from moolitayer/clean_script_output

Automatic merge from submit-queue Silence curl output Removes the following from script output: curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused
parents ddc3d8ec ba6878f4
...@@ -122,7 +122,7 @@ CLAIM_BINDER_SYNC_PERIOD=${CLAIM_BINDER_SYNC_PERIOD:-"15s"} # current k8s defaul ...@@ -122,7 +122,7 @@ CLAIM_BINDER_SYNC_PERIOD=${CLAIM_BINDER_SYNC_PERIOD:-"15s"} # current k8s defaul
function test_apiserver_off { function test_apiserver_off {
# For the common local scenario, fail fast if server is already running. # For the common local scenario, fail fast if server is already running.
# this can happen if you run local-up-cluster.sh twice and kill etcd in between. # this can happen if you run local-up-cluster.sh twice and kill etcd in between.
curl -g $API_HOST:$API_PORT curl --silent -g $API_HOST:$API_PORT
if [ ! $? -eq 0 ]; then if [ ! $? -eq 0 ]; then
echo "API SERVER port is free, proceeding..." echo "API SERVER port is free, proceeding..."
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment