Repository navigation
Allow increasing PVC size to the minimum supported by its storage class - #3711
Merged
kubevirt-bot merged 1 commit intoMay 2, 2025
Merged
Conversation
arnongilboa
force-pushed
the
set_min_pvc_size_per_sc_ann
branch
from
April 23, 2025 14:25
18f4f61 to
17f0bef
Compare
arnongilboa
force-pushed
the
set_min_pvc_size_per_sc_ann
branch
from
April 24, 2025 09:08
17f0bef to
c13fcfc
Compare
arnongilboa
force-pushed
the
set_min_pvc_size_per_sc_ann
branch
from
April 24, 2025 09:09
c13fcfc to
1934b6c
Compare
Member
|
/cc @alromeros |
arnongilboa
force-pushed
the
set_min_pvc_size_per_sc_ann
branch
from
April 29, 2025 14:15
1934b6c to
dd94a7b
Compare
alromeros
reviewed
Apr 29, 2025
| if err := client.Get(context.TODO(), types.NamespacedName{Name: *scName}, storageClass); err == nil { | ||
| if val, exists := storageClass.Annotations[AnnMinimumSupportedPVCSize]; exists { | ||
| minSize, err := resource.ParseQuantity(val) | ||
| if err == nil && requestedSize.Cmp(minSize) == -1 { |
Member
There was a problem hiding this comment.
I think it would be helpful to log or return an error if parsing the annotation fails, similar to what was done in the kubevirt PR. This way users can be notified if the annotation is set incorrectly.
awels
reviewed
Apr 29, 2025
awels
left a comment
Member
There was a problem hiding this comment.
looks good, just the one comment by Alvaro.
arnongilboa
force-pushed
the
set_min_pvc_size_per_sc_ann
branch
from
April 30, 2025 09:55
dd94a7b to
e60536c
Compare
Supports both DataVolume PVC rendering and PVC mutating webhook
rendering, so it can cover the kubevirt-side created TPM small PVC and
any other PVC created by DV or independently. For independent PVCs they
should be labeled with cdi.kubevirt.io/applyStorageProfile: "true" and
CDI featureGate WebhookPvcRendering should be enabled. A StorageProfile
can be annotated with its minimum supported volume size with e.g.:
cdi.kubevirt.io/minimumSupportedPvcSize: 4Gi
Signed-off-by: Arnon Gilboa <[email protected]>
arnongilboa
force-pushed
the
set_min_pvc_size_per_sc_ann
branch
from
April 30, 2025 10:09
e60536c to
8136697
Compare
Member
|
/lgtm |
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awels The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Collaborator
Author
|
/cherrypick release-v1.62 |
arnongilboa
added a commit
to arnongilboa/containerized-data-importer
that referenced
this pull request
May 8, 2025
The feature is available since v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner (kubevirt#3711), and mainly in order to support: kubevirt/kubevirt#14637 Signed-off-by: Arnon Gilboa <[email protected]>
arnongilboa
added a commit
to arnongilboa/hyperconverged-cluster-operator
that referenced
this pull request
May 8, 2025
The feature is available since CDI v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner: kubevirt/containerized-data-importer#3711 and mainly in order to support: kubevirt/kubevirt#14637 Signed-off-by: Arnon Gilboa <[email protected]>
arnongilboa
added a commit
to arnongilboa/hyperconverged-cluster-operator
that referenced
this pull request
May 8, 2025
The feature is available since CDI v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner: kubevirt/containerized-data-importer#3711 and mainly in order to support: kubevirt/kubevirt#14637 Signed-off-by: Arnon Gilboa <[email protected]>
arnongilboa
added a commit
to arnongilboa/hyperconverged-cluster-operator
that referenced
this pull request
May 8, 2025
The feature is available since CDI v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner: kubevirt/containerized-data-importer#3711 and mainly in order to support: kubevirt/kubevirt#14637 Signed-off-by: Arnon Gilboa <[email protected]>
kubevirt-bot
pushed a commit
to kubevirt/hyperconverged-cluster-operator
that referenced
this pull request
May 9, 2025
The feature is available since CDI v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner: kubevirt/containerized-data-importer#3711 and mainly in order to support: kubevirt/kubevirt#14637 Signed-off-by: Arnon Gilboa <[email protected]>
kubevirt-bot
pushed a commit
to kubevirt-bot/hyperconverged-cluster-operator
that referenced
this pull request
May 9, 2025
The feature is available since CDI v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner: kubevirt/containerized-data-importer#3711 and mainly in order to support: kubevirt/kubevirt#14637 Signed-off-by: Arnon Gilboa <[email protected]>
kubevirt-bot
pushed a commit
to kubevirt-bot/hyperconverged-cluster-operator
that referenced
this pull request
May 9, 2025
The feature is available since CDI v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner: kubevirt/containerized-data-importer#3711 and mainly in order to support: kubevirt/kubevirt#14637 Signed-off-by: Arnon Gilboa <[email protected]>
kubevirt-bot
added a commit
to kubevirt/hyperconverged-cluster-operator
that referenced
this pull request
May 11, 2025
The feature is available since CDI v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner: kubevirt/containerized-data-importer#3711 and mainly in order to support: kubevirt/kubevirt#14637 Signed-off-by: Arnon Gilboa <[email protected]> Co-authored-by: Arnon Gilboa <[email protected]>
arnongilboa
added a commit
to arnongilboa/containerized-data-importer
that referenced
this pull request
May 11, 2025
The feature is available since v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner (kubevirt#3711), and mainly in order to support: kubevirt/kubevirt#14637 Signed-off-by: Arnon Gilboa <[email protected]>
arnongilboa
added a commit
to arnongilboa/containerized-data-importer
that referenced
this pull request
May 11, 2025
The feature is available since v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner (kubevirt#3711), and mainly in order to support: kubevirt/kubevirt#14637 As a bonus, the related Serial tests are now parallel. Thanks akalenyu:) Signed-off-by: Arnon Gilboa <[email protected]>
arnongilboa
added a commit
to arnongilboa/containerized-data-importer
that referenced
this pull request
May 14, 2025
Follow-up of kubevirt#3711, annotating specifically: -pd.csi.storage.gke.io hyperdisk (4Gi) -ebs.csi.aws.com io1/io2 (4Gi) & gp2/gp3 (1Gi) Signed-off-by: Arnon Gilboa <[email protected]>
arnongilboa
added a commit
to arnongilboa/containerized-data-importer
that referenced
this pull request
May 14, 2025
Follow-up of kubevirt#3711, annotating specifically: -pd.csi.storage.gke.io hyperdisk (4Gi) -ebs.csi.aws.com io1/io2 (4Gi) & gp2/gp3 (1Gi) Signed-off-by: Arnon Gilboa <[email protected]>
kubevirt-bot
pushed a commit
that referenced
this pull request
May 14, 2025
The feature is available since v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner (#3711), and mainly in order to support: kubevirt/kubevirt#14637 As a bonus, the related Serial tests are now parallel. Thanks akalenyu:) Signed-off-by: Arnon Gilboa <[email protected]>
kubevirt-bot
pushed a commit
to kubevirt-bot/containerized-data-importer
that referenced
this pull request
May 15, 2025
The feature is available since v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner (kubevirt#3711), and mainly in order to support: kubevirt/kubevirt#14637 As a bonus, the related Serial tests are now parallel. Thanks akalenyu:) Signed-off-by: Arnon Gilboa <[email protected]>
kubevirt-bot
pushed a commit
to kubevirt-bot/containerized-data-importer
that referenced
this pull request
May 15, 2025
The feature is available since v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner (kubevirt#3711), and mainly in order to support: kubevirt/kubevirt#14637 As a bonus, the related Serial tests are now parallel. Thanks akalenyu:) Signed-off-by: Arnon Gilboa <[email protected]>
kubevirt-bot
added a commit
that referenced
this pull request
May 19, 2025
The feature is available since v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner (#3711), and mainly in order to support: kubevirt/kubevirt#14637 As a bonus, the related Serial tests are now parallel. Thanks akalenyu:) Signed-off-by: Arnon Gilboa <[email protected]> Co-authored-by: Arnon Gilboa <[email protected]>
kubevirt-bot
added a commit
that referenced
this pull request
May 19, 2025
The feature is available since v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner (#3711), and mainly in order to support: kubevirt/kubevirt#14637 As a bonus, the related Serial tests are now parallel. Thanks akalenyu:) Signed-off-by: Arnon Gilboa <[email protected]> Co-authored-by: Arnon Gilboa <[email protected]>
kubevirt-bot
pushed a commit
that referenced
this pull request
May 20, 2025
…3746) Follow-up of #3711, annotating specifically: -pd.csi.storage.gke.io hyperdisk (4Gi) -ebs.csi.aws.com io1/io2 (4Gi) & gp2/gp3 (1Gi) Signed-off-by: Arnon Gilboa <[email protected]>
kubevirt-bot
pushed a commit
to kubevirt-bot/containerized-data-importer
that referenced
this pull request
May 20, 2025
Follow-up of kubevirt#3711, annotating specifically: -pd.csi.storage.gke.io hyperdisk (4Gi) -ebs.csi.aws.com io1/io2 (4Gi) & gp2/gp3 (1Gi) Signed-off-by: Arnon Gilboa <[email protected]>
kubevirt-bot
pushed a commit
to kubevirt-bot/containerized-data-importer
that referenced
this pull request
May 20, 2025
Follow-up of kubevirt#3711, annotating specifically: -pd.csi.storage.gke.io hyperdisk (4Gi) -ebs.csi.aws.com io1/io2 (4Gi) & gp2/gp3 (1Gi) Signed-off-by: Arnon Gilboa <[email protected]>
kubevirt-bot
added a commit
to kubevirt/hyperconverged-cluster-operator
that referenced
this pull request
May 20, 2025
The feature is available since CDI v1.59, and we enable it by default to allow increasing PVC size to the minimum supported by its provisioner: kubevirt/containerized-data-importer#3711 and mainly in order to support: kubevirt/kubevirt#14637 Signed-off-by: Arnon Gilboa <[email protected]> Co-authored-by: Arnon Gilboa <[email protected]>
kubevirt-bot
added a commit
that referenced
this pull request
May 20, 2025
…3758) Follow-up of #3711, annotating specifically: -pd.csi.storage.gke.io hyperdisk (4Gi) -ebs.csi.aws.com io1/io2 (4Gi) & gp2/gp3 (1Gi) Signed-off-by: Arnon Gilboa <[email protected]> Co-authored-by: Arnon Gilboa <[email protected]>
kubevirt-bot
added a commit
that referenced
this pull request
May 20, 2025
…3759) Follow-up of #3711, annotating specifically: -pd.csi.storage.gke.io hyperdisk (4Gi) -ebs.csi.aws.com io1/io2 (4Gi) & gp2/gp3 (1Gi) Signed-off-by: Arnon Gilboa <[email protected]> Co-authored-by: Arnon Gilboa <[email protected]>
1 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Supports both
DataVolumePVC rendering and PVC mutating webhook rendering, so it can cover the kubevirt-side createdTPMsmall PVC and any other PVC created byDataVolumeor independently. For independent PVCs they should be labeled withcdi.kubevirt.io/applyStorageProfile: "true"and CDI featureGateWebhookPvcRenderingshould be enabled. AStorageProfilecan be annotated with its minimum supported volume size with e.g.:cdi.kubevirt.io/minimumSupportedPvcSize: 4GiWhich issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: