Skip to content

Conversation

@Acedus
Copy link
Contributor

@Acedus Acedus commented Sep 11, 2025

What this PR does / why we need it:
All registry DataImportCron import settings would ignore the architecture setting, resulting in scenarios where the resulting populated datasource would contain an incorrect image.

This PR introduces support for architecture support in DICs for both pull method node, which was the only mode that suffered from the issue. Other modes correctly delegate the inference logic to the importer pod.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes https://issues.redhat.com/browse/CNV-68812

Special notes for your reviewer:

Release note:

Bugfix: DataImportCrons now respects the platform.architecture setting in all modes.

@kubevirt-bot kubevirt-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Sep 11, 2025
@Acedus
Copy link
Contributor Author

Acedus commented Sep 11, 2025

/cc @akalenyu

@Acedus
Copy link
Contributor Author

Acedus commented Sep 11, 2025

fyi @nunnatsa

@coveralls
Copy link

coveralls commented Sep 11, 2025

Coverage Status

coverage: 59.248% (+0.04%) from 59.211%
when pulling 780186d on Acedus:dic-poller-get-acknowledge-arch-digest
into 99bcc36 on kubevirt:main.

@Acedus Acedus force-pushed the dic-poller-get-acknowledge-arch-digest branch 2 times, most recently from f9eca03 to 6738d09 Compare September 14, 2025 07:40
@Acedus
Copy link
Contributor Author

Acedus commented Sep 14, 2025

Change - Fix cdi-source-update-poller handling of single manifests.

Copy link
Collaborator

@akalenyu akalenyu left a comment

Choose a reason for hiding this comment

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

Looks good, some nits
/approve

waitForDigest()
})

It("Should succeed to obtain digest with specific architecture with pullMethod Pod", func() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would you mind extracting the new tests and putting them under a new ginkgo context that is not Serial?
I don't think they care about the storage profile setting

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I understand, but given the current structure of the test I would rather refactor it in its entirety in a follow-up PR to allow such separation as doing it now would yield a lot code duplication.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sure

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: akalenyu

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 14, 2025
@Acedus Acedus force-pushed the dic-poller-get-acknowledge-arch-digest branch from 6738d09 to 42acd96 Compare September 14, 2025 10:04
@Acedus
Copy link
Contributor Author

Acedus commented Sep 14, 2025

Change - Address @akalenyu's comments.

@Acedus
Copy link
Contributor Author

Acedus commented Sep 14, 2025

/cherry-pick release-v1.63

@kubevirt-bot
Copy link
Contributor

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

Details

In response to this:

/cherry-pick release-v1.63

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.

@Acedus Acedus force-pushed the dic-poller-get-acknowledge-arch-digest branch from 42acd96 to 75f7c99 Compare September 14, 2025 10:20
@Acedus
Copy link
Contributor Author

Acedus commented Sep 14, 2025

Change - Validation should only apply to single-manifest.

@Acedus
Copy link
Contributor Author

Acedus commented Sep 14, 2025

@nunnatsa correctly pointed out that for pullMethod pod registry the existing logic should suffice as the importer Pod should still be able to resolve the correct digest from the manifest. Dropping the first commit as it's unncessary.

@Acedus Acedus force-pushed the dic-poller-get-acknowledge-arch-digest branch 2 times, most recently from fead204 to 2b861d0 Compare September 14, 2025 11:00
For pullMethod: node imports, the poller pod that's created lacked an
architecture nodeSelector in the event that an architecture specific
import was required.

Signed-off-by: Adi Aloni <[email protected]>
@Acedus Acedus force-pushed the dic-poller-get-acknowledge-arch-digest branch from e72046f to 780186d Compare September 14, 2025 11:33
@Acedus Acedus requested a review from akalenyu September 14, 2025 11:35
@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 14, 2025
@akalenyu
Copy link
Collaborator

/test pull-cdi-verify-go-mod

@kubevirt-bot kubevirt-bot merged commit fdbd554 into kubevirt:main Sep 14, 2025
21 checks passed
@kubevirt-bot
Copy link
Contributor

@Acedus: new pull request created: #3908

Details

In response to this:

/cherry-pick release-v1.63

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. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants