Skip to content

Commit

Permalink
fixing runtime attach to support kubernetes 1.24 (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
roi-codefresh authored Dec 4, 2022
1 parent 470eb1c commit a0a1c56
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions lib/interface/cli/commands/hybrid/init.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions lib/interface/cli/commands/runtimeEnvironments/attach.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.80.4",
"version": "0.81.0",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit a0a1c56

Please sign in to comment.