feat(provisioning): extra format options (mkfs) added#335
Conversation
e931f2c to
de805a6
Compare
6a46aef to
6fc3b35
Compare
2cf836e to
3c59634
Compare
|
How is the new formatOptions going to be set by user? via storageclass? There is no mkfsOptions unlike mountOptions as provided by storageclass. |
|
I think |
|
Hi
So, It will work if you add it to storageclass |
|
Also there is no test for the mounter itself |
|
You can run this manually and document here the steps to set formatOptions. |
It's my first time that I'm contributing to this project so I just looked for where mountOptions is handled to handle formatOptions too |
|
Hello again I'm using NixOS, and I can't run |
I checked out more and I saw that we have to put this on where we are mounting volume for the first time, So there is no need to add this into |
3c59634 to
a699854
Compare
a699854 to
72528d1
Compare
|
@mhkarimi1383 |
|
golint-ci returns error I think to update to |
Would you like to do that as part of this PR? or instead try using a |
|
I can do both, whatever is Ok :) |
Thanks, I'd say then try using a compatible |
|
Ok, I will revert my changes to go.mod, etc. And will change the package again |
|
I have fixed package versions and switched to a correct version of mount utils And I was able to build project successfully and tests passed |
40d40c3 to
eb67ccf
Compare
|
@abhilashshetty04, @tiagolobocastro I have done with tests ;) |
|
Also it's good to make tests to run in parallel in CI I think |
Lets do a separate PR for that. We dont have bors or similar utility inplace for that right now in localpv repo. |
Yeah we should check if we don't have any naming conflicts, etc in resources that are creating in K8s but ginkgo has support for parallel tests |
Got it. We definately check it out. |
There was a problem hiding this comment.
Thanks, Please squash commits before merging @mhkarimi1383
I will |
0b06ecf to
4283d66
Compare
3931703 to
7a6fcb2
Compare
|
@abhilashshetty04 I had to recreate branch and apply diff of the PR, Because of some merge commits, etc. |
|
anything pending before merge here, @mhkarimi1383 @abhilashshetty04 ? |
I'm Done with this PR, LGTM |
7a6fcb2 to
8b8efb7
Compare
|
I can Also add a Test case for xfs using it's block size option, But IDK if xfs_info is available to the pods or not |
|
Can you please rebase @mhkarimi1383 |
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
8b8efb7 to
f00aa0a
Compare
|
@abhilashshetty04 Rebased |
|
@mhkarimi1383 Could you please update the documentation here: https://github.com/openebs/lvm-localpv/blob/develop/docs/storageclasses.md , based on your changes? |
|
@dsharma-dc I will |
|
Covered in |
Pull Request template
Please, go through these steps before you submit a PR.
Why is this PR required? What issue does it fix?:
adding extra format (
mkfs) options to newly created Volumesalso switched from deprecated
utils/monuttomount-utilsto be able to add this feature and moving from an old package to a maintained oneWhat this PR does?:
Refactor to new mount utils package and change format and mount function
Does this PR require any upgrade changes?:
No, But requires document updates for StorageClasses
If the changes in this PR are manually verified, list down the scenarios covered::
Any additional information for your reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs
Checklist:
<type>(<scope>): <subject>