-
Notifications
You must be signed in to change notification settings - Fork 183
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
Stricter data types #328
Stricter data types #328
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why it is flagged backwards-incompatible
.
Just someone that use knif like a fork will have incompatibility.
58e58d8
to
4e9a042
Compare
There are changes. Often they're (much) stricter and users can run into this. Where strings used to be accepted, now only integers are. Given the tests are also failing on this indicates I may have been a bit too aggressive in some places. |
Note to self: |
Can someone explain to me what |
My guess is that it was a clear placeholder for easy testing. Now that this is green I plan to go over every config item to see if they're still correct. I already found 2 parameters that no longer exist in 3.2+. That makes me think about dropping Ubuntu 16.04 which is the last that ships Redis 3.0. |
when will Canonical drop 16.04? |
Support stops in April 2021, but I want to add a note that it can work if you install the PPA so you have a version newer than 3.0. Maybe we can set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ekohl I looked at most of variables you are touching and these could use some more tightening and safer limits on types.
Awesome @dom-nie! Going over the parameters was on my TODO list for today and I highly appreciate it. |
dd57316
to
6556dc2
Compare
This sets data types for most parameters that previously had none. It also moves static defaults from params.pp to inline. While this duplicates a few between Redis and the sentinel, the user would already need to know these were linked. The benefit is a much more readable reference documentation.
6556dc2
to
502ff38
Compare
I think this is now ready for a final review. The |
This sets data types for most parameters that previously had none. It also moves static defaults from params.pp to inline. While this duplicates a few between Redis and the sentinel, the user would already need to know these were linked. The benefit is a much more readable reference documentation.