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

topology-updater: properly handle IPv6 from NODE_ADDRESS #1729

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

marquiz
Copy link
Contributor

@marquiz marquiz commented May 30, 2024

Fix the usage of IPv6 addresses for default kubelet configz endpoint.

The default host:port we use for kubelet configz endpoint is ${NODE_ADDRESS}:10250. Previously we errored out if NODE_ADDRESS was an IPv6 address because we used an incorrect notation (without brackets). The (IPv6) needs to be enclosed in brackets if specifying the port.

Fixes #1727

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 30, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: marquiz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from zvonkok May 30, 2024 11:35
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 30, 2024
@marquiz
Copy link
Contributor Author

marquiz commented May 30, 2024

Need to verify this

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 30, 2024
@marquiz
Copy link
Contributor Author

marquiz commented May 30, 2024

/assign @PiotrProkop

@marquiz
Copy link
Contributor Author

marquiz commented May 30, 2024

/cherry-pick release-0.16
/cherry-pick release-0.15

@k8s-infra-cherrypick-robot

@marquiz: once the present PR merges, I will cherry-pick it on top of release-0.16 in a new PR and assign it to you.

In response to this:

/cherry-pick release-0.16
/cherry-pick release-0.15

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link

netlify bot commented May 30, 2024

Deploy Preview for kubernetes-sigs-nfd ready!

Name Link
🔨 Latest commit dfbd63b
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-nfd/deploys/665ef8666250ab00088f9c93
😎 Deploy Preview https://deploy-preview-1729--kubernetes-sigs-nfd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@craigcabrey
Copy link

thanks!

@marquiz
Copy link
Contributor Author

marquiz commented Jun 4, 2024

Tested this on ipv6 cluster on kind. Seems to work as expected. @PiotrProkop PTAL
/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 4, 2024
@PiotrProkop
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 4, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 09c59227af5365d10321e63fb1d94598f658155f

@marquiz
Copy link
Contributor Author

marquiz commented Jun 4, 2024

/retest

Fix the usage of IPv6 addresses for default kubelet configz endpoint.

The default host:port we use for kubelet configz endpoint is
${NODE_ADDRESS}:10250. Previously we errored out if NODE_ADDRESS was an
IPv6 address because we used an incorrect notation (without brackets).
The (IPv6) needs to be enclosed in brackets if specifying the port.
@marquiz
Copy link
Contributor Author

marquiz commented Jun 4, 2024

Force-pushed to re-run the netlify stuff. @PiotrProkop PTAL

@marquiz
Copy link
Contributor Author

marquiz commented Jun 4, 2024

Oh, it didn't remove the lgtm label. @PiotrProkop nevermind :)

Copy link

codecov bot commented Jun 4, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 39.51%. Comparing base (560905f) to head (dfbd63b).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1729      +/-   ##
==========================================
- Coverage   39.54%   39.51%   -0.04%     
==========================================
  Files          80       80              
  Lines        7153     7160       +7     
==========================================
  Hits         2829     2829              
- Misses       4064     4071       +7     
  Partials      260      260              
Files Coverage Δ
cmd/nfd-topology-updater/main.go 43.90% <0.00%> (-4.10%) ⬇️

@k8s-ci-robot k8s-ci-robot merged commit 72c0bdb into kubernetes-sigs:master Jun 4, 2024
12 checks passed
@k8s-infra-cherrypick-robot

@marquiz: new pull request created: #1731

In response to this:

/cherry-pick release-0.16
/cherry-pick release-0.15

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-infra-cherrypick-robot

@marquiz: new pull request created: #1732

In response to this:

/cherry-pick release-0.16
/cherry-pick release-0.15

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Malformed IPv6 address used in topology-update workers
5 participants