From 2942fc483b4578a8953d1cef59dd8c43d66bb71d Mon Sep 17 00:00:00 2001 From: Javier Viola Date: Wed, 3 May 2023 08:40:16 -0300 Subject: [PATCH] Use echo to not exit the pod with error --- .../orchestrator/src/providers/k8s/substrateCliArgsHelper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascript/packages/orchestrator/src/providers/k8s/substrateCliArgsHelper.ts b/javascript/packages/orchestrator/src/providers/k8s/substrateCliArgsHelper.ts index e6e13e6b1..79186ae9d 100644 --- a/javascript/packages/orchestrator/src/providers/k8s/substrateCliArgsHelper.ts +++ b/javascript/packages/orchestrator/src/providers/k8s/substrateCliArgsHelper.ts @@ -9,7 +9,8 @@ const getVersion = async ( command: string, ): Promise => { const client = getClient() as KubeClient; - const fullCmd = `${command} --help | grep ws-port`; + // use echo to not finish the pod with error status. + const fullCmd = `${command} --help | grep ws-port || echo "V1"`; const node = await createTempNodeDef( "temp", image,