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

fix(ipv6): Use net.JoinHostPort instead of fmt.Sprintf #485

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

johannwagner
Copy link
Contributor

@johannwagner johannwagner commented Jul 10, 2024

We ran into some issues regarding the handling of IPv6 addresses.
This PR rectifies those problems by utilizing net.JoinHostPort instead of fmt.Sprintf for joining IP addresses with ports.

If you have an IPv6 address, it adds braces, e.g. [xxx], around the IP. Otherwise the result is an invalid IPv6 address.

Copy link

netlify bot commented Jul 10, 2024

Deploy Preview for kamaji-documentation canceled.

Name Link
🔨 Latest commit b1b2153
🔍 Latest deploy log https://app.netlify.com/sites/kamaji-documentation/deploys/668e9bfa2ca981000842dbac

@prometherion
Copy link
Member

Thanks for the contribution, @johannwagner, it would be great if we could connect to understand better how are you using (or evaluating) Kamaji in IPv6 environments.

If the CI is green happy to get this merged.

@johannwagner
Copy link
Contributor Author

johannwagner commented Jul 10, 2024

Of course, we can do this!

Shoot me a mail at <REDACTED> ☺️

Good to hear!

@johannwagner
Copy link
Contributor Author

We also just confirmed, that creating an IPv6 only cluster is possible with this PR.

Copy link
Member

@prometherion prometherion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, we really appreciate it! 🚀

@prometherion prometherion merged commit b541962 into clastix:master Jul 11, 2024
10 checks passed
@prometherion prometherion added the bug Something isn't working label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants