-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scale components #105
Scale components #105
Conversation
cmd/scaleComponent.go
Outdated
|
||
if reset { | ||
return resetScaledComponent(apiClient, *appName, envName, cmpName) | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary else
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
cmd/scaleComponent.go
Outdated
Long: `Used for manually scaling up or down replicas of a Radix application component. | ||
Note: Manual scaling will persist across deployments, and will disable autoscaling. | ||
|
||
Examples: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the field Example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, also used the deprecation field 👍
cmd/scaleComponent.go
Outdated
_, err := apiClient.Component.ScaleComponent(parameters, nil) | ||
if err != nil { | ||
return err | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_, err := apiClient.Component.ScaleComponent(parameters, nil) | |
if err != nil { | |
return err | |
} | |
if _, err := apiClient.Component.ScaleComponent(parameters, nil); err != nil { | |
return err | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
cmd/scaleComponent.go
Outdated
_, err := apiClient.Component.ResetScaledComponent(parameters, nil) | ||
if err != nil { | ||
return err | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_, err := apiClient.Component.ResetScaledComponent(parameters, nil) | |
if err != nil { | |
return err | |
} | |
if _, err := apiClient.Component.ResetScaledComponent(parameters, nil); err != nil { | |
return err | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
cmd/scaleComponent.go
Outdated
"errors" | ||
"strconv" | ||
|
||
client2 "github.com/equinor/radix-cli/generated-client/client" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to apiclient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
No description provided.