Skip to content

Commit 082504d

Browse files
committed
Wait for daemonset to have deployed to finish workflow
1 parent 1619582 commit 082504d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/deploy.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ jobs:
2828
chmod 600 ~/.kube/config
2929
3030
- name: Deploy and restart DaemonSets
31-
run: make kubectl-apply
31+
run: |
32+
make kubectl-apply-node-labeller
33+
make kubectl-apply-and-wait-device-plugin

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ kubectl-apply-device-plugin:
4444
kubectl apply -f k8s-ds-device-plugin.yaml
4545
kubectl rollout restart daemonset/rise-riscv-runner-device-plugin -n kube-system
4646

47+
.PHONY: kubectl-apply-and-wait-device-plugin
48+
kubectl-apply-and-wait-device-plugin: kubectl-apply-device-plugin
49+
kubectl rollout status daemonset/rise-riscv-runner-device-plugin -n kube-system --watch
50+
4751
.PHONY: kubectl-apply-node-labeller
4852
kubectl-apply-node-labeller:
4953
kubectl apply -f k8s-ds-node-labeller.yaml

0 commit comments

Comments
 (0)