Move applyStorageProfile constant to API package#3962
Move applyStorageProfile constant to API package#3962noamasu wants to merge 1 commit intokubevirt:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
pkg/common/common.go
Outdated
| // Deprecated: Use cdiv1.LabelApplyStorageProfile from containerized-data-importer-api instead. | ||
| // This constant is kept for backwards compatibility and will be removed in a future release. | ||
| PvcApplyStorageProfileLabel = cdiv1.LabelApplyStorageProfile |
There was a problem hiding this comment.
why keep it if all refs are updated?
There was a problem hiding this comment.
Still appears in the commit message and the PR description.
4f3e82f to
379b3a2
Compare
|
|
||
| // LabelApplyStorageProfile is a PVC label that tells the CDI mutating webhook to modify the PVC | ||
| // according to the storage profile. When set to "true", the webhook will process the PVC based on | ||
| // its associated StorageProfile (e.g., setting volume mode, access modes, etc.). |
There was a problem hiding this comment.
in the e.g. you may add "minimum supported pvc size", as it's the main motivation for its usage in kubevirt via the api.
379b3a2 to
63cc5d7
Compare
- Add LabelApplyStorageProfile to containerized-data-importer-api package for external consumer access - Update CDI code to use cdiv1.LabelApplyStorageProfile This enables external projects (e.g., KubeVirt) to import the constant from the API package instead of duplicating it. Signed-off-by: Noam Assouline <nassouli@redhat.com>
63cc5d7 to
36bfa8d
Compare
|
/lgtm |
|
Pull requests that are marked with After that period the bot marks them with the label /label needs-approver-review |
|
PR needs rebase. DetailsInstructions 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. |
Moving
cdi.kubevirt.io/applyStorageProfileto the API package.What this PR does / why we need it:
This enables external projects (e.g., KubeVirt) to import the constant from the API package instead of duplicating it.
Which issue(s) this PR fixes:
Part of a fix for # https://issues.redhat.com/browse/CNV-73408
This kubevirt/kubevirt#16229 PR in kubevirt relies on this change.
Special notes for your reviewer:
@arnongilboa
@ShellyKa13
Release note: