Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Fixed race condition during controlplane recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
afritzler committed Dec 20, 2018
1 parent 735110d commit 160521e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/instance/resources/bin/recover-controlplane.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ checkpod() {
}

check () {
missing=
checkpod kube-apiserver
checkpod -d kube-controller-manager
checkpod -d kube-scheduler
Expand Down Expand Up @@ -57,8 +58,11 @@ if [ -n "$missing" ]; then
echo "waiting for controlplane"
while [ -n "$missing" ]; do
sleep 10
missing=
check
if [ -z $missing ]; then
sleep 10
check
fi
done
delete
fi
Expand Down

0 comments on commit 160521e

Please sign in to comment.