-
Notifications
You must be signed in to change notification settings - Fork 169
fix: use actual volume size for CSI and snapshot creation #1052
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
Conversation
adc8f0d
to
d142231
Compare
415e5bd
to
46afa2a
Compare
0647476
to
e519e00
Compare
Signed-off-by: Kyori Sakao <sakaok@cybozu.co.jp>
e519e00
to
8b5276d
Compare
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.
Would you update check logic below that should use LogicalVolume::status.currentSize.
topolvm/internal/driver/controller.go
Lines 224 to 225 in 8484158
sourceSizeBytes := sourceVol.Spec.Size.Value() | |
if requestCapacityBytes < sourceSizeBytes { |
Signed-off-by: Kyori Sakao <sakaok@cybozu.co.jp>
Signed-off-by: Kyori Sakao <sakaok@cybozu.co.jp>
8b5276d
to
b143ecf
Compare
782338e
to
da742c3
Compare
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.
I would like to update the size of other tests as well. For example, the following values.
Line 71 in 8484158
claimYAML := []byte(fmt.Sprintf(pvcTemplateYAML, "topo-pvc", "Filesystem", 1024, storageClass)) |
thinPvcYAML := []byte(fmt.Sprintf(thinPVCTemplateYAML, "thinvol", "1")) |
topolvm/test/e2e/snapshot_test.go
Lines 32 to 41 in 8484158
// size of PVC in GBs from the source volume | |
pvcSizeGB = 1 | |
// size of PVC in GBs from the restored PVCs | |
restorePVCSizeGB = 2 | |
) | |
var ( | |
pvcSize = strconv.Itoa(pvcSizeGB) | |
restorePVCSize = strconv.Itoa(restorePVCSizeGB) | |
) |
9093598
to
1acbd9d
Compare
Signed-off-by: Kyori Sakao <sakaok@cybozu.co.jp>
…t was created Signed-off-by: Kyori Sakao <sakaok@cybozu.co.jp>
1acbd9d
to
09d8771
Compare
Uh oh!
There was an error while loading. Please reload this page.