From a0a1c5623f9add24e444e462f4284decc8e73b87 Mon Sep 17 00:00:00 2001 From: roi-codefresh Date: Sun, 4 Dec 2022 17:04:49 +0200 Subject: [PATCH] fixing runtime attach to support kubernetes 1.24 (#765) --- lib/interface/cli/commands/hybrid/init.cmd.js | 2 -- lib/interface/cli/commands/runtimeEnvironments/attach.cmd.js | 2 -- package.json | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/interface/cli/commands/hybrid/init.cmd.js b/lib/interface/cli/commands/hybrid/init.cmd.js index 315c3fc4c..0b4657be9 100644 --- a/lib/interface/cli/commands/hybrid/init.cmd.js +++ b/lib/interface/cli/commands/hybrid/init.cmd.js @@ -800,8 +800,6 @@ const initCmd = new Command({ if (!existingRT) { runtimes.push(reName); await sdk.agents.update({ agentId: agent.id, runtimes }); - } else { - throw new Error(`Runtime ${name} already attached`); } }, installationEvent: installationProgress.events.AGENT_UPDATED, diff --git a/lib/interface/cli/commands/runtimeEnvironments/attach.cmd.js b/lib/interface/cli/commands/runtimeEnvironments/attach.cmd.js index 0a87ff9ae..aee4e145e 100644 --- a/lib/interface/cli/commands/runtimeEnvironments/attach.cmd.js +++ b/lib/interface/cli/commands/runtimeEnvironments/attach.cmd.js @@ -20,8 +20,6 @@ const attachAgentToRuntime = async (agent, name) => { if (!existingRT) { runtimes.push(name); await sdk.agents.update({ agentId: agent.id, runtimes }); - } else { - throw new Error(`Runtime ${name} already attached`); } }; diff --git a/package.json b/package.json index 3a6d8291a..10f17c6ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codefresh", - "version": "0.80.4", + "version": "0.81.0", "description": "Codefresh command line utility", "main": "index.js", "preferGlobal": true,