From 5c9297a453945d3a4d2583ee2a9e1c96bf927766 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Wed, 25 Jun 2025 11:15:35 +0530 Subject: [PATCH] feat(Makefile): add optional WAIT=true env to until all operands are running (#1456) - Introduced WAIT variable to wait until all operands are running - Added conditional shell logic to wait before proceeding Signed-off-by: Rohan Kumar --- build/make/deploy.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/make/deploy.mk b/build/make/deploy.mk index 14327d520..7969b74b1 100644 --- a/build/make/deploy.mk +++ b/build/make/deploy.mk @@ -85,6 +85,12 @@ install: _print_vars _check_cert_manager _init_devworkspace_crds _create_namespa cat deploy/default-config.yaml | envsubst > deploy/default-config.temp.yaml $(K8S_CLI) apply -f deploy/default-config.temp.yaml rm -rf deploy/default-config.temp.yaml + @if [ "$(WAIT)" = "true" ]; then \ + echo "⌛ Waiting for DevWorkspace Operator deployments to get ready"; \ + $(K8S_CLI) rollout status deployment devworkspace-controller-manager -n $(NAMESPACE) --timeout 90s; \ + $(K8S_CLI) rollout status deployment devworkspace-webhook-server -n $(NAMESPACE) --timeout 90s; \ + fi + @echo "✅ Installation Successful" ### install_plugin_templates: Deploys the sample plugin templates to namespace devworkspace-plugins: install_plugin_templates: _print_vars