Skip to content
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

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

ushitora-anqou
Copy link
Contributor

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.

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]>
@ushitora-anqou ushitora-anqou marked this pull request as ready for review August 6, 2024 04:03
@ushitora-anqou ushitora-anqou requested a review from a team as a code owner August 6, 2024 04:03
Copy link
Contributor

@peng225 peng225 left a 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?

@ushitora-anqou
Copy link
Contributor Author

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.

@peng225
Copy link
Contributor

peng225 commented Aug 13, 2024

Are you referring to the tests located in the test/e2e directory?

Yes, but I noticed my misunderstanding about the current tests.
(I overlooked the test of PVC manifest check.)

@peng225 peng225 merged commit c8e1d1e into main Aug 13, 2024
7 checks passed
@peng225 peng225 deleted the support-to-change-pvc-capacity branch August 13, 2024 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants