Skip to content

Commit f45fd01

Browse files
authored
feat(Makefile): add optional WAIT=true env to until all operands are running (#1456) (#1458)
- Introduced WAIT variable to wait until all operands are running - Added conditional shell logic to wait before proceeding Signed-off-by: Rohan Kumar <[email protected]>
1 parent a93e971 commit f45fd01

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build/make/deploy.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ install: _print_vars _check_cert_manager _init_devworkspace_crds _create_namespa
8585
cat deploy/default-config.yaml | envsubst > deploy/default-config.temp.yaml
8686
$(K8S_CLI) apply -f deploy/default-config.temp.yaml
8787
rm -rf deploy/default-config.temp.yaml
88+
@if [ "$(WAIT)" = "true" ]; then \
89+
echo "⌛ Waiting for DevWorkspace Operator deployments to get ready"; \
90+
$(K8S_CLI) rollout status deployment devworkspace-controller-manager -n $(NAMESPACE) --timeout 90s; \
91+
$(K8S_CLI) rollout status deployment devworkspace-webhook-server -n $(NAMESPACE) --timeout 90s; \
92+
fi
93+
@echo "✅ Installation Successful"
8894

8995
### install_plugin_templates: Deploys the sample plugin templates to namespace devworkspace-plugins:
9096
install_plugin_templates: _print_vars

0 commit comments

Comments
 (0)