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(ring): use net.JoinHostPort to support IPv6 addresses #3903

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

marcsanmi
Copy link
Contributor

@marcsanmi marcsanmi commented Feb 12, 2025

Use Go's net.JoinHostPort instead of string formatting in ring lifecycler configuration to properly handle IPv6 addresses.

Fixes #3900

@marcsanmi marcsanmi requested a review from a team as a code owner February 12, 2025 09:16
Copy link
Collaborator

@kolesnikovae kolesnikovae 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 fixing this!

May I ask you to fix one more occurrence in: https://github.com/grafana/pyroscope/blob/main/pkg/experiment/metastore/discovery/kuberesolver.go#L106

It's fine if not (as this is fix(ring)), we can do this later

@marcsanmi
Copy link
Contributor Author

In fact, I missed that. Just updated, thanks!

Copy link
Contributor

@simonswine simonswine left a comment

Choose a reason for hiding this comment

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

LGTM

@marcsanmi marcsanmi merged commit 0d7771a into main Feb 12, 2025
21 checks passed
@marcsanmi marcsanmi deleted the marcsanmi/add-ipv6-support branch February 12, 2025 15:36
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.

ring: Use net.JoinHostPort to support IPv6 addresses
3 participants