Skip to content

Commit c22a358

Browse files
authored
Wait for armada server readiness (#359)
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
1 parent 9b3904b commit c22a358

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ ifndef ignore-not-found
211211
ignore-not-found = false
212212
endif
213213

214-
kind-all: kind-create-cluster install-and-wait-cert-manager helm-repos helm-install install-armada-deps wait-for-armada-deps create-armada-namespace apply-armada-crs create-armadactl-config apply-default-priority-class get-armadactl ## Install everything
214+
kind-all: kind-create-cluster install-and-wait-cert-manager helm-repos helm-install install-armada-deps wait-for-armada-deps create-armada-namespace apply-armada-crs create-armadactl-config apply-default-priority-class get-armadactl wait-for-armada ## Install everything
215215

216216
.PHONY: kind-all-dev
217-
kind-all-dev: kind-create-cluster kind-deploy helm-repos install-armada-deps wait-for-armada-deps create-armada-namespace apply-armada-crs create-armadactl-config apply-default-priority-class get-armadactl ## Install everything with Operator built from scratch
217+
kind-all-dev: kind-create-cluster kind-deploy helm-repos install-armada-deps wait-for-armada-deps create-armada-namespace apply-armada-crs create-armadactl-config apply-default-priority-class get-armadactl wait-for-armada ## Install everything with Operator built from scratch
218218

219219
.PHONY: kind-create-cluster
220220
kind-create-cluster: kind ## Create a kind cluster using config from hack/kind-config.yaml.
@@ -276,6 +276,10 @@ install-armada-deps: helm-repos helm-install-kube-prometheus-stack helm-install-
276276
wait-for-armada-deps: ## Wait for all Armada dependencies to be ready
277277
hack/wait-for-deps.sh
278278

279+
.PHONY: wait-for-armada
280+
wait-for-armada: ## Wait for all Armada pods
281+
kubectl wait pod -n armada --selector="app=armada-server" --for condition=Ready=true --timeout=600s
282+
279283
.PHONY: uninstall-armada-deps
280284
uninstall-armada-deps: helm-uninstall-kube-prometheus-stack helm-uninstall-postgres helm-uninstall-pulsar helm-uninstall-redis ## Uninstall required Armada dependencies (Prometheus, PostgreSQL, Pulsar, Redis).
281285

0 commit comments

Comments
 (0)