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

Set the node-ips annotation correctly with CloudDualStackNodeIPs #118329

Conversation

danwinship
Copy link
Contributor

What type of PR is this?

/kind bug
/kind feature

What this PR does / why we need it:

Fixes CloudDualStackNodeIPs; we were not actually setting the annotation correctly when using dual-stack node IPs. Doh. (The original version of the code involved totally-rewritten annotation-setting code because it also added a new annotation. When I removed that I forgot to add in the new simpler annotation-setting code...)

Which issue(s) this PR fixes:

Fixes #118315

Special notes for your reviewer:

(The new code doesn't need to check the feature gate because we know that the only way there can be 2 nodeIPs is if the config parsing code saw that the feature gate was set.)

Does this PR introduce a user-facing change?

Fixes the alpha `CloudDualStackNodeIPs` feature.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

- [KEP]: https://github.com/kubernetes/enhancements/issues/3705

/sig network
/priority important-soon
/cc @aojea @MaysaMacedo

@k8s-ci-robot k8s-ci-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label May 30, 2023
@k8s-ci-robot k8s-ci-robot requested a review from aojea May 30, 2023 13:46
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. kind/bug Categorizes issue or PR as related to a bug. labels May 30, 2023
@k8s-ci-robot
Copy link
Contributor

@danwinship: GitHub didn't allow me to request PR reviews from the following users: MaysaMacedo.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

What type of PR is this?

/kind bug
/kind feature

What this PR does / why we need it:

Fixes CloudDualStackNodeIPs; we were not actually setting the annotation correctly when using dual-stack node IPs. Doh. (The original version of the code involved totally-rewritten annotation-setting code because it also added a new annotation. When I removed that I forgot to add in the new simpler annotation-setting code...)

Which issue(s) this PR fixes:

Fixes #118315

Special notes for your reviewer:

(The new code doesn't need to check the feature gate because we know that the only way there can be 2 nodeIPs is if the config parsing code saw that the feature gate was set.)

Does this PR introduce a user-facing change?

Fixes the alpha `CloudDualStackNodeIPs` feature.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

- [KEP]: https://github.com/kubernetes/enhancements/issues/3705

/sig network
/priority important-soon
/cc @aojea @MaysaMacedo

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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. sig/network Categorizes an issue or PR as relevant to SIG Network. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. area/kubelet sig/node Categorizes an issue or PR as relevant to SIG Node. labels May 30, 2023
@danwinship danwinship force-pushed the fix-dual-stack-cloud-node-ip-annotation branch from f4c4c97 to 89f46d3 Compare May 30, 2023 16:16
@danwinship
Copy link
Contributor Author

/retest
/assign @thockin

@danwinship danwinship force-pushed the fix-dual-stack-cloud-node-ip-annotation branch from 89f46d3 to a6c7f63 Compare June 1, 2023 11:21
@aojea
Copy link
Member

aojea commented Jun 1, 2023

/lgtm
/approve

/assign @thockin

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

LGTM label has been added.

Git tree hash: 505d9b56bac4bb721fbd7eae342cd915acd6e9db

@MaysaMacedo
Copy link
Contributor

Looks good to me.

@bart0sh
Copy link
Contributor

bart0sh commented Jun 6, 2023

/triage accepted

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jun 6, 2023
@bart0sh bart0sh moved this from Triage to Needs Approver in SIG Node PR Triage Jun 6, 2023
Copy link
Member

@thockin thockin left a comment

Choose a reason for hiding this comment

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

Thanks!

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aojea, danwinship, thockin

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 12, 2023
@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Jun 12, 2023

@danwinship: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kubernetes-e2e-gce a6c7f63 link unknown /test pull-kubernetes-e2e-gce

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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/test-infra repository. I understand the commands that are listed here.

@dims
Copy link
Member

dims commented Jun 12, 2023

/retest

@k8s-ci-robot k8s-ci-robot merged commit 9d231f8 into kubernetes:master Jun 12, 2023
11 of 12 checks passed
SIG Node PR Triage automation moved this from Needs Approver to Done Jun 12, 2023
@k8s-ci-robot k8s-ci-robot added this to the v1.28 milestone Jun 12, 2023
@mkowalski
Copy link
Contributor

Hey folks, is it okay if we cherry-pick it to release-1.27 branch?

k8s-ci-robot added a commit that referenced this pull request Jun 30, 2023
…18329-upstream-release-1.27

Automated cherry pick of #118329: Set the node-ips annotation correctly with
@danwinship danwinship deleted the fix-dual-stack-cloud-node-ip-annotation branch October 8, 2023 21:21
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. area/kubelet cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/network Categorizes an issue or PR as relevant to SIG Network. sig/node Categorizes an issue or PR as relevant to SIG Node. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Development

Successfully merging this pull request may close these issues.

Node addresses only contains one address when using dual-stack
8 participants