From 51cd3fb4a0661c84c826f72928ad96dd2c8a70ca Mon Sep 17 00:00:00 2001 From: Javier Viola Date: Fri, 11 Oct 2024 15:40:13 +0200 Subject: [PATCH] change wait order --- .../packages/orchestrator/src/providers/k8s/kubeClient.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascript/packages/orchestrator/src/providers/k8s/kubeClient.ts b/javascript/packages/orchestrator/src/providers/k8s/kubeClient.ts index cecb69ed4..73b592062 100644 --- a/javascript/packages/orchestrator/src/providers/k8s/kubeClient.ts +++ b/javascript/packages/orchestrator/src/providers/k8s/kubeClient.ts @@ -321,6 +321,7 @@ export class KubeClient extends Client { } async waitTransferContainerReady(pod: string): Promise { + await this.runCommand(["wait", "--for=condition=Running", `Pod/${pod}`, `-c ${TRANSFER_CONTAINER_NAME}`]); await this.waitContainerInState(pod, TRANSFER_CONTAINER_NAME, "running"); await this.waitLog( @@ -569,8 +570,8 @@ export class KubeClient extends Client { xinfra, }); debug("waiting for pod: fileserver, to be ready"); - await this.waitPodReady("fileserver"); await this.runCommand(["wait", "--for=condition=Ready", "Pod/fileserver"]); + await this.waitPodReady("fileserver"); debug("pod: fileserver, ready"); let fileServerOk = false; let attempts = 0;