Skip to content

Commit

Permalink
kubectl wait deployments/${WORKLOAD_NAME}
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit committed Jun 5, 2024
1 parent eff4460 commit dfa6fc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/open-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ jobs:
id: k8s-up
run: |
make k8s-up
- name: make k8s-test
id: k8s-test
run: |
make k8s-test
- name: catch k8s-up errors
if: ${{ failure() && steps.k8s-up.outcome == 'failure' }}
run: |
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ k8s-up: manifests.yaml
kubectl apply \
-f manifests.yaml \
-n ${NAMESPACE}
sleep 5
kubectl wait deployments/${WORKLOAD_NAME} \
-n ${NAMESPACE} \
--for condition=Available
kubectl wait pods \
-n ${NAMESPACE} \
-l app.kubernetes.io/name=${WORKLOAD_NAME} \
Expand Down

0 comments on commit dfa6fc3

Please sign in to comment.