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

feat(localpv): Add regex to handle zstd levels [1-19] #439

Closed
wants to merge 13 commits into from

Conversation

jnels124
Copy link
Contributor

@jnels124 jnels124 commented May 5, 2023

Pull Request template

Please, go through these steps before you submit a PR.

Why is this PR required? What issue does it fix?:
allow setting the compression to zstd with levels

What this PR does?:
Updates CRDs for volumes, snapshots, and restores to allow zstd compression with specific level

Does this PR require any upgrade changes?:
No
If the changes in this PR are manually verified, list down the scenarios covered::
Manually applied CRD's (also re ran verification steps when using helm)
Edited existing zv with compression set to zstd-12. Verified the zpool on the node was updated accordingly.
Performed write tests with known compressed size and confirmed compression level change was applied to new data.
Any additional information for your reviewer? :

Checklist:

@jnels124 jnels124 force-pushed the zstd-levels branch 2 times, most recently from 0414907 to 40701cb Compare May 5, 2023 17:09
@niladrih
Copy link
Member

niladrih commented May 29, 2023

Hey @jnels124, thank you for your contribution! Could you please rebase your PR please? Thanks..

@niladrih niladrih requested review from avishnu and niladrih May 29, 2023 03:54
@jnels124
Copy link
Contributor Author

jnels124 commented Jun 8, 2023

@niladrih I have rebased my branch.

Signed-off-by: Jesse Nelson <[email protected]>
Signed-off-by: Jesse Nelson <[email protected]>
Signed-off-by: Jesse Nelson <[email protected]>
Signed-off-by: Jesse Nelson <[email protected]>
Signed-off-by: Jesse Nelson <[email protected]>
@jnels124
Copy link
Contributor Author

jnels124 commented Jun 21, 2023

@niladrih believe there was an error in my previous rebase. I have fixed.

Copy link
Member

@avishnu avishnu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

aceat64 and others added 8 commits July 26, 2023 09:40
This is the default recordsize for ZFS datasets, and significantly better for most use-cases than 4k.

Signed-off-by: Andrew LeCody <[email protected]>
Signed-off-by: Jesse Nelson <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
Reason:

- v1 CSIStorageCapacity is GA since K8s 1.24 and in csi-provisioner
  3.2.0 and above.
- In K8s 1.27 v1beta1/CSIStorageCapacity has been removed, so bumping
  this up will enable zfs-localpv to run on K8s 1.27 & above.

Signed-off-by: Harsh Vardhan <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Harsh Vardhan <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Harsh Vardhan <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Harsh Vardhan <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Harsh Vardhan <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
@niladrih
Copy link
Member

These changes have been included in #461, closing this one. This is available in the released version v2.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support setting compression to zstd-{1-19}
6 participants