Skip to content

Commit

Permalink
wait for resources to be created
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed Jul 29, 2024
1 parent 451bf2e commit 21373e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/cloudinit/scripts/10-disable-default-cni.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ fi

/capi-scripts/50-wait-apiserver.sh

while ! microk8s kubectl get -f "${CNI_YAML}" > /dev/null; do
echo "Waiting for CNI objects to be created..."
sleep 5
done

microk8s kubectl delete -f "${CNI_YAML}"

for file in "${CNI_DIR}"/*; do
Expand Down

0 comments on commit 21373e2

Please sign in to comment.