Skip to content

Conversation

@arnongilboa
Copy link
Collaborator

What this PR does / why we need it:
Allow mutating only the PVC requested size to the minimum supported by the relevant StorageProfile, but without applying the StorageProfile accessModes, volumeMode, or filesystemOverhead.

Release note:

Allow mutating only the PVC requested size to the minimum supported

by the relevant StorageProfile, but without applying the StorageProfile
accessModes, volumeMode, or filesystemOverhead.

Signed-off-by: Arnon Gilboa <[email protected]>
@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. size/M labels Sep 1, 2025
@kubevirt-bot kubevirt-bot requested a review from aglitke September 1, 2025 15:11
@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 aglitke 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 Sep 1, 2025
@coveralls
Copy link

Coverage Status

coverage: 59.165% (-0.04%) from 59.201%
when pulling 26b5c87 on arnongilboa:mutate_pvc_min_size
into 2887e21 on kubevirt:main.

@kubevirt-bot
Copy link
Contributor

@arnongilboa: 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-containerized-data-importer-e2e-ceph-wffc 26b5c87 link true /test pull-containerized-data-importer-e2e-ceph-wffc

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

// PvcApplyStorageProfileLabel tells whether the PVC should be rendered by the mutating webhook based on StorageProfiles
PvcApplyStorageProfileLabel = CDIComponentLabel + "/applyStorageProfile"
// PvcApplyStorageProfileMinimumSize tells whether the PVC mutating webhook rendering should apply only the StorageProfile minimum volume size if exists
PvcApplyStorageProfileMinimumSize = "minimumSize"
Copy link
Member

Choose a reason for hiding this comment

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

Do we plan to add more applyStorageProfile modes? (accesmode, volume mode, etc)

Copy link
Member

Choose a reason for hiding this comment

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

Even if it's just this one we should update the repository's docs with info about the possible options.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This PR is just an option for consideration. I'm not sure it's the best one, and that's why it's on hold :)

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/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants