Skip to content

Commit

Permalink
commit patch
Browse files Browse the repository at this point in the history
Signed-off-by: dmitry.lopatin <[email protected]>
  • Loading branch information
LopatinDmitr committed Jan 28, 2025
1 parent 7499b6d commit eef005a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions images/cdi-artifact/patches/023-fix-problem-with-clone-pvc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff --git a/pkg/uploadserver/uploadserver.go b/pkg/uploadserver/uploadserver.go
index 845981a1a..d2e0cc17d 100644
--- a/pkg/uploadserver/uploadserver.go
+++ b/pkg/uploadserver/uploadserver.go
@@ -579,13 +579,13 @@ func calculateTargetSize(dest, imageSize string) int64 {
klog.Error(err)
}
targetQuantity = resource.NewScaledQuantity(size, 0)
- }

- if imageSize != "" {
- klog.Infof("Request image size not empty")
- newImageSizeQuantity := resource.MustParse(imageSize)
- minQuantity := util.MinQuantity(targetQuantity, &newImageSizeQuantity)
- targetQuantity = &minQuantity
+ if imageSize != "" {
+ klog.Infof("Request image size not empty")
+ newImageSizeQuantity := resource.MustParse(imageSize)
+ minQuantity := util.MinQuantity(targetQuantity, &newImageSizeQuantity)
+ targetQuantity = &minQuantity
+ }
}

klog.Infof("Target size %s", targetQuantity.String())

0 comments on commit eef005a

Please sign in to comment.