-
Notifications
You must be signed in to change notification settings - Fork 302
Move applyStorageProfile constant to API package #3962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Move applyStorageProfile constant to API package #3962
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.
Needs 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why keep it if all refs are updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
63cc5d7 to
36bfa8d
Compare
|
/lgtm |
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: