Skip to content

Commit

Permalink
style fixes. added new line and a timestamp to a ready message
Browse files Browse the repository at this point in the history
  • Loading branch information
groundnuty committed May 30, 2018
1 parent 3d831c4 commit 8626df8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wait_for.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ wait_for_resource() {
echo "Waiting for $wait_for_resource_type $wait_for_resource_descriptor $KUBECTL_ARGS..."
sleep "$WAIT_TIME"
done
ready $wait_for_resource_type "$wait_for_resource_descriptor"
ready "$wait_for_resource_type" "$wait_for_resource_descriptor"
}

ready() {
printf "%s %s %s is ready." $1 "$2" "$KUBECTL_ARGS"
printf "[%s] %s %s %s is ready." "$(date +'%Y-%m-%d %H:%M:%S')\\n" "$1" "$2" "$KUBECTL_ARGS"
}

main() {
Expand All @@ -169,7 +169,7 @@ main() {

KUBECTL_ARGS="${*}"

wait_for_resource $main_resource "$main_name"
wait_for_resource "$main_resource" "$main_name"

exit 0
}
Expand Down

0 comments on commit 8626df8

Please sign in to comment.