Skip to content

Commit 6e2d9a8

Browse files
author
Peng Zhou
committed
add comment to retry functions
1 parent 41afe00 commit 6e2d9a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

charts/templates/configmap-scripts.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ data:
175175
echo $message >> /tmp/script.log
176176
}
177177
178+
# Function to retry a command based on the return code
179+
# $1: The number of retries
180+
# $2: The command to run
178181
retry() {
179182
local retries=$1
180183
shift

0 commit comments

Comments
 (0)