default helm vtgate maxReplicas to replicas#3710
Merged
sougou merged 1 commit intovitessio:masterfrom May 2, 2018
Merged
Conversation
Member
|
@derekperkins Can you take a look at this if you have a chance? |
Member
|
Yep, I'll be dealing with this in the next day or two. |
Author
|
Sorry, I didn't realize I need to git commit -s. I can close and reopen a signed version if my PR makes sense. |
Member
|
@gflarity Not your fault. I think we switched to DCO after you opened this PR. :) If you're comfortable with rebases, you could fix this PR without having to open a new one, with something like: git rebase --signoff master
git push -f |
Signed-off-by: Geoff Flarity <geoff@squareup.com>
7b0be21 to
e5e619a
Compare
Author
|
Done! |
Contributor
|
Now that I understand how helms work, I like this change :) |
Member
|
LGTM. Let's go ahead and merge it |
sougou
approved these changes
May 1, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Using the Unsharded keyspace example from:
https://github.com/vitessio/vitess/tree/master/helm/vitess
Fails:
Error: render error in "vitess/templates/vitess.yaml": template: vitess/templates/vitess.yaml:51:3: executing "vitess/templates/vitess.yaml" at <include "vtgate" (tu...>: error calling include: template: vitess/templates/_vtgate.tpl:141:6: executing "vtgate" at <gt .maxReplicas .rep...>: error calling gt: invalid type for comparisonOn inspection it looks like .maxReplicas is undefined and so you can't compare it to an int. This fix assumes that maxReplicas isn't required, and defaults it to .replicas. Alternatively .maxReplicas could be required and the documentation should be updated instead.
Cheers,
Geoff