implement nodeAddressMap for sentinel
Description
Describe your pull request here
Adds support for nodeAddressMap to sentinel client options, equivalent to cluster's nodeAddressMap feature.
I'd like to be able to use/test Sentinel from outside a k8s cluster, but returned addresses aren't resolvable to the client
Closes https://github.com/redis/node-redis/issues/3144
Checklist
- [x] Does
npm testpass with this change (including linting)? - [x] Is the new or changed code fully tested?
- [x] Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.
In case there are security findings, they will be communicated to you as a comment inside the PR.
Hope you’ll enjoy using Jit.
Questions? Comments? Want to learn more? Get in touch with us.
Thank you for the PR. I’ve added it to my review list.