mirror of https://github.com/k3s-io/k3s
Merge pull request #48914 from MrHohn/gke-kube-down-log
Automatic merge from submit-queue (batch tested with PRs 48914, 48535, 49099, 48935, 48871) Log error when fail to execute command in with-retry() **What this PR does / why we need it**: Enhance gke/util.sh logging. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48913 **Special notes for your reviewer**: /cc @krzyzacy **Release note**: ```release-note NONE ```pull/6/head
commit
384c1d285d
|
@ -40,6 +40,8 @@ function with-retry() {
|
||||||
sleep 3
|
sleep 3
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "Failed to execute '${cmd[@]}' for $retry_limit times." >&2
|
||||||
|
|
||||||
return ${rc}
|
return ${rc}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue