Skip to content

Conversation

@arnongilboa
Copy link
Collaborator

What this PR does / why we need it:
When the target DataVolume storage requests a size smaller than the source PVC. For target without size it already worked correctly.

jira-ticket: https://issues.redhat.com/browse/CNV-64264

Release note:

Support storageProfile minimumSupportedPVCSize in clone

@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 Jul 28, 2025
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign akalenyu for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@arnongilboa
Copy link
Collaborator Author

/hold

@kubevirt-bot kubevirt-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 28, 2025
@arnongilboa arnongilboa force-pushed the fix_clone_target_size_validation branch 2 times, most recently from ab884cc to 1c9e46b Compare July 31, 2025 15:22
@coveralls
Copy link

coveralls commented Jul 31, 2025

Coverage Status

coverage: 59.233% (-0.09%) from 59.319%
when pulling df3cedc on arnongilboa:fix_clone_target_size_validation
into 42df94a on kubevirt:main.

@arnongilboa arnongilboa force-pushed the fix_clone_target_size_validation branch 4 times, most recently from 3a3e45d to 6731ed0 Compare August 5, 2025 13:47
return storageResources, nil
}

if val, exists := storageProfile.Annotations[AnnMinimumSupportedPVCSize]; exists {
Copy link
Member

Choose a reason for hiding this comment

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

This logic is reimplemented in several places in the code, does it make sense to have a single helper and reuse it each time?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, fixing that. Thanks!

@arnongilboa arnongilboa force-pushed the fix_clone_target_size_validation branch from 6731ed0 to d8e5528 Compare August 6, 2025 08:48
@arnongilboa
Copy link
Collaborator Author

/hold

When the target DataVolume storage requests a size smaller than the
source PVC. For target without size it already worked correctly.

Signed-off-by: Arnon Gilboa <[email protected]>
@arnongilboa arnongilboa force-pushed the fix_clone_target_size_validation branch from 901cab0 to df3cedc Compare August 18, 2025 14:57
@arnongilboa
Copy link
Collaborator Author

/test pull-cdi-verify-go-mod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has DCO signed all their commits. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants