Skip to content

Fix ip address handling.#796

Open
ssinnott wants to merge 4 commits intomainfrom
fix-ip-error
Open

Fix ip address handling.#796
ssinnott wants to merge 4 commits intomainfrom
fix-ip-error

Conversation

@ssinnott
Copy link
Contributor

@ssinnott ssinnott commented Mar 6, 2026

So there's a bug over here around ipv4 vs ipv6 handling.

KUBERNETES_SERVICE_HOST comes in as something like 2001:db8:1234:5678::1 the parsing below doesn't work because when it's concatenated with KUBERNETES_SERVICE_PORT it ends up with something like,

https://2001:db8:1234:5678::1:443

This checks if : is in the KUBERNETES_SERVICE_HOST if it is it assume ipv6 and properly places []. So you end up with something like this,

https://[2001:db8:1234:5678::1]:443

@ssinnott ssinnott requested review from a team, GCRev and zachhannum as code owners March 6, 2026 21:51
Copy link
Contributor

@GCRev GCRev left a comment

Choose a reason for hiding this comment

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

Are these .lock files all autogen?

@ssinnott
Copy link
Contributor Author

ssinnott commented Mar 6, 2026

Are these .lock files all autogen?

Yeah the lock files come from running just update-lock.

Copy link
Contributor

@GCRev GCRev left a comment

Choose a reason for hiding this comment

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

Logic change looks fine.

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.

2 participants