diff --git a/environments/cert-manager/devspace.yaml b/environments/cert-manager/devspace.yaml index 54cd970..8caeec6 100644 --- a/environments/cert-manager/devspace.yaml +++ b/environments/cert-manager/devspace.yaml @@ -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 diff --git a/environments/kind-ingress-nginx/devspace.yaml b/environments/kind-ingress-nginx/devspace.yaml index 40246ac..fae1e85 100644 --- a/environments/kind-ingress-nginx/devspace.yaml +++ b/environments/kind-ingress-nginx/devspace.yaml @@ -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