Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Deal with the sprig library using int for sub and div values #79

Merged
merged 3 commits into from
Dec 5, 2018
Merged

Deal with the sprig library using int for sub and div values #79

merged 3 commits into from
Dec 5, 2018

Conversation

s3than
Copy link
Contributor

@s3than s3than commented Dec 5, 2018

Fixes #71

http://masterminds.github.io/sprig/math.html
Functions within the sprig library utilise integer values causing disruption budget to not provide usable values.

@mitchellh
Copy link
Contributor

This is a clever way to do this and good job catching this. Awesome job on the tests too 😮

I'll defer to @adilyse to hit the button and review 😄

Copy link
Contributor

@adilyse adilyse left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! This is a good fix with very thorough tests.

I'm working on keeping the tests titles understandable in isolation, so I really prefer explicitly mentioning that we're setting replicas vs. using n which could mean any number of things. Hopefully it's quick to accept the suggestions and we can get this merged!

test/unit/server-disruptionbudget.bats Outdated Show resolved Hide resolved
test/unit/server-disruptionbudget.bats Outdated Show resolved Hide resolved
test/unit/server-disruptionbudget.bats Outdated Show resolved Hide resolved
test/unit/server-disruptionbudget.bats Outdated Show resolved Hide resolved
test/unit/server-disruptionbudget.bats Outdated Show resolved Hide resolved
@s3than
Copy link
Contributor Author

s3than commented Dec 5, 2018

@adilyse All updated

@adilyse adilyse merged commit 6a61173 into hashicorp:master Dec 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants