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

Feat/autoscaling confirmation #185

Open
wants to merge 5 commits into
base: development
Choose a base branch
from

Conversation

rahulrayal
Copy link
Contributor

added confirmation for autoscaling and --file for operate component

rahulrayal added 2 commits April 14, 2023 14:23
@@ -471,6 +481,30 @@ func (s *Service) askForConsent(envName *string) int {
return 0
}

func (s *Service) askForScalingConset(serviceName *string, envName *string, data map[string]interface{}) int {
Copy link
Collaborator

Choose a reason for hiding this comment

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

spelling mistake

return 1
}
for _, component := range componentListResponse.Response {
consentMessage := fmt.Sprintf("\nYou have enabled reactive scaling for %s, this means %s will no longer be scaled using Scaler post this operation. Do you wish to continue? [Y/n]:", component, component)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This message is used twice, move this to constants

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