-
Notifications
You must be signed in to change notification settings - Fork 1.9k
implement nodeAddressMap for sentinel #3145
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
base: master
Are you sure you want to change the base?
Conversation
|
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. |
|
@PavelPashov any way we could try and re-run the tests for 8.0.2 to see if this is a flake? |
nkaradzhov
left a comment
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.
@elimelt thanks for this, it looks good in general. I just left couple of nits
Address PR review comments: - Remove duplicate #getNodeAddress methods from RedisSentinelInternal and RedisSentinelFactory - Add getMappedNode utility function in utils.ts that takes host, port, and nodeAddressMap - Update all callsites to use the new utility function This eliminates code duplication and makes the address mapping logic reusable.
|
@nkaradzhov fixed! |
Description
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 #3144
Checklist
npm testpass with this change (including linting)?