-
Notifications
You must be signed in to change notification settings - Fork 1
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
support .spec.pvcCapacity in PieProbe CR #131
Conversation
22b267d
to
03518ec
Compare
Some filesystems (like xfs and btrfs) only support volumes over certain amounts of capacities. Currently, pie uses 100 MiB volumes in any case, so it won't work on such filesystems. This commit solves this problem by adding .spec.pvcCapacity field to PieProbe custom resource. When the user set some value to .spec.pvcCapacity, pie will use the value as the PVC's capacity. The default value of this field is 100 MiB, so pie should behave in the same way as before if the user doesn't specify the field. Signed-off-by: Ryotaro Banno <[email protected]>
Signed-off-by: Ryotaro Banno <[email protected]>
03518ec
to
fdba009
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.
Current tests only check mount probe.
Is it difficult to test provision probe's pvc capacity change in e2e test?
Could you clarify a bit more? Are you referring to the tests located in the test/e2e directory? If that's the case, the tests in test/e2e/suite_test.go only verify that the pie's metrics are functioning correctly, and there are already some tests for both of provision and mount probes. |
Yes, but I noticed my misunderstanding about the current tests. |
Some filesystems (like xfs and btrfs) only support volumes over certain amounts of capacities. Currently, pie uses 100 MiB volumes in any case, so it won't work on such filesystems.
This commit solves this problem by adding .spec.pvcCapacity field to PieProbe custom resource. When the user set some value to .spec.pvcCapacity, pie will use the value as the PVC's capacity. The default value of this field is 100 MiB, so pie should behave in the same way as before if the user doesn't specify the field.