Skip to content

Commit a0a1c56

Browse files
fixing runtime attach to support kubernetes 1.24 (#765)
1 parent 470eb1c commit a0a1c56

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

lib/interface/cli/commands/hybrid/init.cmd.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,6 @@ const initCmd = new Command({
800800
if (!existingRT) {
801801
runtimes.push(reName);
802802
await sdk.agents.update({ agentId: agent.id, runtimes });
803-
} else {
804-
throw new Error(`Runtime ${name} already attached`);
805803
}
806804
},
807805
installationEvent: installationProgress.events.AGENT_UPDATED,

lib/interface/cli/commands/runtimeEnvironments/attach.cmd.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ const attachAgentToRuntime = async (agent, name) => {
2020
if (!existingRT) {
2121
runtimes.push(name);
2222
await sdk.agents.update({ agentId: agent.id, runtimes });
23-
} else {
24-
throw new Error(`Runtime ${name} already attached`);
2523
}
2624
};
2725

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.80.4",
3+
"version": "0.81.0",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)