Skip to content

Commit 1be309e

Browse files
Peng Zhoupengzhouml
Peng Zhou
authored andcommitted
MLE-15631: add retry to curl in getting host protocol
1 parent 4308535 commit 1be309e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/templates/configmap-scripts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ data:
231231
hostname="${1:-localhost}"
232232
port="${2:-8001}"
233233
protocol="http"
234-
resp_code=$(curl -s -o /dev/null -w '%{http_code}' http://$hostname:$port)
234+
resp_code=$(curl -s --retry 5 -o /dev/null -w '%{http_code}' http://$hostname:$port)
235235
if [[ $resp_code -eq 403 ]]; then
236236
protocol="https"
237237
fi

0 commit comments

Comments
 (0)