Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha committed Feb 19, 2024
1 parent 3e2c2c9 commit aab6887
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/tasks/pod-tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ export namespace PodTasks {
return {
title: `Scale ${name} ${replicas > 0 ? 'Up' : 'Down'}`,
task: async (_ctx: any, task: any) => {
if (replicas === 0 && !await kubeHelper.isDeploymentExist(deploymentName, namespace)) {
task.title = `${task.title}...[Not found]`
return
}

await kubeHelper.scaleDeployment(deploymentName, namespace, replicas)
task.title = `${task.title}...[OK]`
},
Expand Down

0 comments on commit aab6887

Please sign in to comment.