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 836b9db
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

# todo(eaudetcobello) A bit of a hack, we don't *need* the pod to be ready,
# we just want to make sure the resources are created before we call kubectl
# delete.
microk8s kubectl wait --for=condition=ready pod -l k8s-app=calico-node -n kube-system

microk8s kubectl delete -f "${CNI_YAML}"

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

0 comments on commit 836b9db

Please sign in to comment.