Skip to content

Commit

Permalink
Decrease bound check PVC size to 10Mi
Browse files Browse the repository at this point in the history
We would like to check provisioners can create and bound a 10Mi PVC,
as the kubevirt requirement for the "Backend state PVC" is 10Mi.

Signed-off-by: Arnon Gilboa <[email protected]>
  • Loading branch information
arnongilboa committed Jun 4, 2024
1 parent c82480a commit 59341bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ kubectl get configmap storage-checkup-config -n <target-namespace> -o yaml
|status.startTimestamp|Checkup start timestamp|RFC 3339|
|status.completionTimestamp|Checkup completion timestamp|RFC 3339|
|status.result.defaultStorageClass|Indicates whether there is a default storage class||
|status.result.pvcBound|PVC created and bound by the provisioner||
|status.result.pvcBound|PVC of 10Mi created and bound by the provisioner||
|status.result.storageProfilesWithEmptyClaimPropertySets|StorageProfiles with empty claimPropertySets (unknown provisioners)||
|status.result.storageProfilesWithSpecClaimPropertySets|StorageProfiles with spec-overriden claimPropertySets||
|status.result.storageWithRWX|Storage with RWX access mode||
Expand Down
3 changes: 2 additions & 1 deletion pkg/internal/checkup/checkup.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func (c *Checkup) checkPVCCreationAndBinding(ctx context.Context, errStr *string
Storage: &cdiv1.StorageSpec{
Resources: corev1.ResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceStorage: resource.MustParse("20Mi"),
corev1.ResourceStorage: resource.MustParse("10Mi"),
},
},
},
Expand Down Expand Up @@ -458,6 +458,7 @@ func (c *Checkup) waitForPVCBound(ctx context.Context, result, errStr *string) {

log.Printf("Waiting for PVC %q bound", pvcName)
if err := wait.PollImmediateWithContext(ctx, pollInterval, time.Minute, conditionFn); err != nil {
log.Printf("PVC %q failed to bound", pvcName)
appendSep(result, ErrPvcNotBound)
appendSep(errStr, ErrPvcNotBound)
return
Expand Down

0 comments on commit 59341bb

Please sign in to comment.