Skip to content

Commit

Permalink
Updates scripts/retrieve_kubeconfig.sh to remove sleep, now just wait…
Browse files Browse the repository at this point in the history
…s until the file is present instead of an arbitrary 180s

Signed-off-by: Joseph D. Marhee <[email protected]>
  • Loading branch information
jmarhee committed Jun 17, 2024
1 parent 31e13a6 commit 4dedd1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/retrieve_kubeconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
CONTROLLER_IP=$1
KEY_PATH=$2

/bin/sleep 180 ; \
while ! /usr/bin/ssh -i $KEY_PATH \
-o StrictHostKeyChecking=no \
-o UserKnownHostsFile=/dev/null -q \
root@$CONTROLLER_IP "ls /etc/rancher/k3s/k3s.yaml" &> /dev/null; do sleep 1; done && \
if [[ "$OSTYPE" == "darwin"* ]]; then
CONFIG=$(/usr/bin/ssh -i \
$KEY_PATH \
Expand Down

0 comments on commit 4dedd1d

Please sign in to comment.