Skip to content

Commit

Permalink
Merge pull request #15 from edgefarm/wait-on-deploy
Browse files Browse the repository at this point in the history
feat(ingress,certmanager): split init into init and wait
  • Loading branch information
batthebee authored Jul 8, 2022
2 parents 680a4db + 5ce018d commit f0fdcb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions environments/cert-manager/devspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ commands:
- name: init
command: |
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.8.2/cert-manager.yaml
- name: wait
command: |
until kubectl wait --for=condition=available deployment/cert-manager -n cert-manager --timeout=60s 2>/dev/null; do echo -n "." && sleep 2; done
until kubectl wait --for=condition=available deployment/cert-manager-cainjector -n cert-manager --timeout=60s 2>/dev/null; do echo -n "." && sleep 2; done
until kubectl wait --for=condition=available deployment/cert-manager-webhook -n cert-manager --timeout=60s 2>/dev/null; do echo -n "." && sleep 2; done
Expand Down
3 changes: 3 additions & 0 deletions environments/kind-ingress-nginx/devspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ commands:
- name: init
command: |
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
- name: wait
command: |
echo -n "Wait until ingress-nginx is ready "
until kubectl wait --for=condition=ready pod --selector=app.kubernetes.io/component=controller -n ingress-nginx --timeout=60s 2>/dev/null; do echo -n "." && sleep 2; done

0 comments on commit f0fdcb0

Please sign in to comment.