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

Supporting scaler 0.2.0 #15

Merged

Conversation

Hedingber
Copy link
Contributor

@Hedingber Hedingber commented Dec 28, 2019

Copy link
Collaborator

@liranbg liranbg left a comment

Choose a reason for hiding this comment

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

Great idea on doing it, looking good
minor comment regarding repeated string work

if item != someString {
newSlice = append(newSlice, item)
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

remove line

return true
}
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

remove line

"value": false,
})
for _, serviceName := range serviceNames {
desiredStatePath := fmt.Sprintf("/spec/spec/tenants/0/spec/services/%s/desired_state", string(serviceName))
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe worth moving those repeated strings outside so both scale from/to would be able to reuse it

@Hedingber Hedingber changed the title Supporting batching resources scaling Supporting scaler 0.2.0 Dec 29, 2019
@Hedingber Hedingber merged commit 55f3ea9 into v3io:development Dec 29, 2019
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