Skip to content

[release-0.11] Expose dual-stack addresses in KubevirtMachine status - #372

Merged
k8s-ci-robot merged 1 commit into
kubernetes-sigs:release-0.11from
nunnatsa:r011-cherrypick-366
Feb 4, 2026
Merged

k8s-ci-robot merged 1 commit into
kubernetes-sigs:release-0.11from
nunnatsa:r011-cherrypick-366

Conversation

@nunnatsa

@nunnatsa nunnatsa commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
Cherry pick of #366

Add support for exposing all IP addresses (IPv4 and IPv6) in the KubevirtMachine status instead of just the primary IP. This fixes CSR auto-approval on dual-stack hosted control plane clusters where the machine-approver needs to see both IPv4 and IPv6 addresses.

Changes:

  • Add Addresses() method to MachineInterface to retrieve all IPs from all VMI network interfaces
  • Update controller to populate multiple InternalIP and ExternalIP entries for each address
  • Add unit tests for dual-stack address handling

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes https://issues.redhat.com/browse/OCPBUGS-74338

Special notes for your reviewer:

Release notes:

Expose dual-stack addresses in KubevirtMachine status

Add support for exposing all IP addresses (IPv4 and IPv6) in the
KubevirtMachine status instead of just the primary IP. This fixes
CSR auto-approval on dual-stack hosted control plane clusters where
the machine-approver needs to see both IPv4 and IPv6 addresses.

Changes:
- Add Addresses() method to MachineInterface to retrieve all IPs
  from all VMI network interfaces
- Update controller to populate multiple InternalIP and ExternalIP
  entries for each address
- Add unit tests for dual-stack address handling

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Enrique Llorente <ellorent@redhat.com>
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nunnatsa

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

The pull request process is described here

Details 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 cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 4, 2026
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 4, 2026
@nunnatsa

nunnatsa commented Feb 4, 2026

Copy link
Copy Markdown
Contributor Author

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Feb 4, 2026
@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 21662111760

Details

  • 31 of 41 (75.61%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 37.83%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/kubevirt/mock/machine_factory_generated.go 0 10 0.0%
Totals Coverage Status
Change from base Build 20957389001: 0.3%
Covered Lines: 1046
Relevant Lines: 2765

💛 - Coveralls

@qinqon

qinqon commented Feb 4, 2026

Copy link
Copy Markdown
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 Feb 4, 2026
@k8s-ci-robot
k8s-ci-robot merged commit cf0e93d into kubernetes-sigs:release-0.11 Feb 4, 2026
25 of 27 checks passed
@nunnatsa
nunnatsa deleted the r011-cherrypick-366 branch February 4, 2026 08:10
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants