Skip to content
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

Merged
merged 14 commits into from
Sep 12, 2024
Merged

Scale components #105

merged 14 commits into from
Sep 12, 2024

Conversation

Richard87
Copy link
Contributor

No description provided.

@Richard87 Richard87 requested a review from satr September 12, 2024 11:39

if reset {
return resetScaledComponent(apiClient, *appName, envName, cmpName)
} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary else

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

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:
Copy link
Contributor

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

Copy link
Contributor Author

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 👍

Comment on lines 97 to 100
_, err := apiClient.Component.ScaleComponent(parameters, nil)
if err != nil {
return err
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_, err := apiClient.Component.ScaleComponent(parameters, nil)
if err != nil {
return err
}
if _, err := apiClient.Component.ScaleComponent(parameters, nil); err != nil {
return err
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment on lines 112 to 115
_, err := apiClient.Component.ResetScaledComponent(parameters, nil)
if err != nil {
return err
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_, err := apiClient.Component.ResetScaledComponent(parameters, nil)
if err != nil {
return err
}
if _, err := apiClient.Component.ResetScaledComponent(parameters, nil); err != nil {
return err
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

"errors"
"strconv"

client2 "github.com/equinor/radix-cli/generated-client/client"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to apiclient

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@Richard87 Richard87 requested a review from satr September 12, 2024 12:00
@Richard87 Richard87 merged commit c0ab9f4 into master Sep 12, 2024
4 checks passed
@Richard87 Richard87 deleted the scale-components branch September 12, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants