Support redis URLs in keywatcher
From https://gitlab.com/gitlab-org/gitlab-ce/issues/47702, it looks like Workhorse doesn't like redis://
or rediss://
URLs in config.toml
. Specifying any one of them gets:
2018-11-11_23:17:52.12870 time="2018-11-11T23:17:52Z" level=error msg="unknown error" error="keywatcher: unknown network rediss"
It looks like we use redis.Dial("tcp", ...)
everywhere, but we can use redis.DialURL
if the scheme is redis
or rediss
.
This applies to Sentinel support as well.