Skip to content

Commit

Permalink
change wait order
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola committed Oct 11, 2024
1 parent b11637d commit 51cd3fb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ export class KubeClient extends Client {
}

async waitTransferContainerReady(pod: string): Promise<void> {
await this.runCommand(["wait", "--for=condition=Running", `Pod/${pod}`, `-c ${TRANSFER_CONTAINER_NAME}`]);

Check failure on line 324 in javascript/packages/orchestrator/src/providers/k8s/kubeClient.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Replace `"wait",·"--for=condition=Running",·`Pod/${pod}`,·`-c·${TRANSFER_CONTAINER_NAME}`` with `⏎······"wait",⏎······"--for=condition=Running",⏎······`Pod/${pod}`,⏎······`-c·${TRANSFER_CONTAINER_NAME}`,⏎····`

Check failure on line 324 in javascript/packages/orchestrator/src/providers/k8s/kubeClient.ts

View workflow job for this annotation

GitHub Actions / build (19.x)

Replace `"wait",·"--for=condition=Running",·`Pod/${pod}`,·`-c·${TRANSFER_CONTAINER_NAME}`` with `⏎······"wait",⏎······"--for=condition=Running",⏎······`Pod/${pod}`,⏎······`-c·${TRANSFER_CONTAINER_NAME}`,⏎····`

Check failure on line 324 in javascript/packages/orchestrator/src/providers/k8s/kubeClient.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Replace `"wait",·"--for=condition=Running",·`Pod/${pod}`,·`-c·${TRANSFER_CONTAINER_NAME}`` with `⏎······"wait",⏎······"--for=condition=Running",⏎······`Pod/${pod}`,⏎······`-c·${TRANSFER_CONTAINER_NAME}`,⏎····`
await this.waitContainerInState(pod, TRANSFER_CONTAINER_NAME, "running");

await this.waitLog(
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 51cd3fb

Please sign in to comment.