-
Notifications
You must be signed in to change notification settings - Fork 825
remove multiple dots in redis flags #6476
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
remove multiple dots in redis flags #6476
Conversation
Signed-off-by: won-js <[email protected]>
@won-js thanks! looks good. Can you run |
@@ -60,7 +59,7 @@ func (cfg *RedisClientConfig) RegisterFlagsWithPrefix(f *flag.FlagSet, prefix st | |||
f.StringVar(&cfg.MasterName, prefix+"master-name", "", "Specifies the master's name. Must be not empty for Redis Sentinel.") | |||
f.IntVar(&cfg.CacheSize, prefix+"cache-size", 0, "If not zero then client-side caching is enabled. Client-side caching is when data is stored in memory instead of fetching data each time. See https://redis.io/docs/manual/client-side-caching/ for more info.") | |||
f.BoolVar(&cfg.TLSEnabled, prefix+"tls-enabled", false, "Whether to enable tls for redis connection.") | |||
cfg.TLS.RegisterFlagsWithPrefix(prefix, f) | |||
cfg.TLS.RegisterFlagsWithPrefix(prefix[:len(prefix)-1], f) |
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.
Not a blocker to this PR. I wonder if we should just unify our flags to always remove .
in its flag description and add .
in the prefix instead
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.
That's a good idea, but it seems like there would be a lot of code that needs to be changed.
Signed-off-by: won-js <[email protected]>
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.
@won-js Do you mind adding a BUGFIX entry in the CHANGELOG? I notice this problem exists since v1.15.0
Signed-off-by: won-js <[email protected]>
b181abf
to
a6afa70
Compare
I have made the addition as requested😃 |
Signed-off-by: Friedrich Gonzalez <[email protected]>
Signed-off-by: Friedrich Gonzalez <[email protected]>
Fixes #6459