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

[Autoscaling] Report overlapping policies #4265

Merged
merged 2 commits into from
Feb 24, 2021

Conversation

barkbay
Copy link
Contributor

@barkbay barkbay commented Feb 22, 2021

This PR reports overlapping policies in the autoscaling status and in the logs.

@barkbay barkbay added >feature Adds or discusses adding a feature to the product autoscaling v1.5.0 labels Feb 22, 2021
@barkbay barkbay mentioned this pull request Feb 22, 2021
13 tasks
Copy link
Collaborator

@pebrc pebrc left a comment

Choose a reason for hiding this comment

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

LGTM just one nit

// sort policies for consistent comparison
sort.Strings(policies)
for _, policy := range policies {
message := fmt.Sprintf("role %s is declared in autoscaling policies %s", role, strings.Join(policies, ","))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this not be outside the loop?

@barkbay barkbay merged commit bd26e20 into elastic:master Feb 24, 2021
@barkbay barkbay deleted the autoscaling-pr/overlapping-policies branch February 24, 2021 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autoscaling >feature Adds or discusses adding a feature to the product v1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants