Skip to content
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

Use net.JoinHostPort() to support connection to redis pod in IPv6 k8s cluster #369

Merged
merged 3 commits into from
Feb 7, 2022

Conversation

wning-vmware
Copy link
Contributor

Fixes #279.

Changes proposed on the PR:

  • As per https://pkg.go.dev/net#JoinHostPort, JoinHostPort combines host and port into a network address of the form "host:port". If host contains a colon, as found in literal IPv6 addresses, then JoinHostPort returns "[host]:port".

@wning-vmware wning-vmware requested a review from ese as a code owner February 7, 2022 08:36
@ese
Copy link
Member

ese commented Feb 7, 2022

Thanks for the PR, you can fix the formatting issue with gofmt -w service/redis/client.go

@ese ese merged commit 22e0631 into spotahome:master Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dual-Stack / IPv6 K8S cluster causes operator to fail to connect to the Redis Pod(s)
2 participants