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

[controller] Add AllocationLimit feature support #48

Merged
merged 3 commits into from
Jul 3, 2024

Conversation

ViktorKram
Copy link
Contributor

@ViktorKram ViktorKram commented Jun 27, 2024

Description

Added a support for an AllocationLimit feature. It allows users to manage LVMVolumeGroup thin-pool's available space through the AllocationLimit field, so they can easily decrease or increase the amount of thin LV using the thin-pools.
The controller will filter and score the nodes according to the AllocationLimit value.

Why do we need it, and what problem does it solve?

It prevents unexpected and unmanageable Thin LV creations and disk space overuse.

What is the expected result?

The controller filters and scores the nodes for Thin LVs correctly according to AllocationLimit value.
Thin LVs with requested size more than available thin pool space, should not be created (but might become such, if a user increase the AllocationLimit value).

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

@ViktorKram ViktorKram added the enhancement New feature or request label Jun 27, 2024
@ViktorKram ViktorKram self-assigned this Jun 27, 2024
@ViktorKram ViktorKram marked this pull request as draft June 27, 2024 17:17
Signed-off-by: Viktor Kramarenko <viktor.kramarenko@flant.com>
@ViktorKram ViktorKram force-pushed the v-kramarenko-adds-allocation-limit branch from 4ae1624 to 77b627c Compare June 27, 2024 17:23
Signed-off-by: Viktor Kramarenko <viktor.kramarenko@flant.com>
@ViktorKram ViktorKram force-pushed the v-kramarenko-adds-allocation-limit branch 5 times, most recently from 9b78b49 to e21adc9 Compare July 2, 2024 10:42
@ViktorKram ViktorKram changed the title [controller] Add thin pool reserved space to the cache [controller] Add AllocationLimit feature support Jul 2, 2024
@ViktorKram ViktorKram requested a review from dxavx July 2, 2024 10:43
@ViktorKram ViktorKram marked this pull request as ready for review July 2, 2024 12:28
@ViktorKram ViktorKram force-pushed the v-kramarenko-adds-allocation-limit branch from e21adc9 to c0dcd6d Compare July 3, 2024 11:13
Signed-off-by: Viktor Kramarenko <viktor.kramarenko@flant.com>
@ViktorKram ViktorKram force-pushed the v-kramarenko-adds-allocation-limit branch from c0dcd6d to 8f988ad Compare July 3, 2024 12:22
@ViktorKram ViktorKram merged commit 757932e into main Jul 3, 2024
3 checks passed
@ViktorKram ViktorKram deleted the v-kramarenko-adds-allocation-limit branch July 3, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants