allow setting default fs type through command line argument#342
allow setting default fs type through command line argument#342k8s-ci-robot merged 1 commit intokubernetes-csi:masterfrom
Conversation
|
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
|
|
Welcome @RomanBednar! |
|
Hi @RomanBednar. Thanks for your PR. I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/ok-to-test |
jsafrane
left a comment
There was a problem hiding this comment.
Please update also README.md and add a release note to the inital comment of this PR - this is an user facing change.
It should clearly say that ext4 as the default fsType is deprecated and will be replaced by "" in the next major release. And there is --default-fstype available in this release that can be used to set it explicitly to any value a driver may need.
The external attacher was using a hardcoded default ext4 filesystem which was applied when PV spec did not contain fstype. As a result attacher always reported ext4 as fs_type volume capability creating interference with some CSI drivers. This patch adds a flag to csi-attacher binary which provides users with a workaround to set their own default filesystem or simply disable the interference by using an empty string: ./bin/csi-attacher --default-fstype "" When the flag is not used we still use ext4, next major release will allow behaviour change and we can default to "" instead preserving the argument in case it's ever needed.
dd0d1c4 to
0f546a9
Compare
|
/check-cla |
|
i signed it |
|
I signed it |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane, RomanBednar The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The external attacher was using a hardcoded default ext4 filesystem which was applied when PV spec did not contain fstype.
As a result attacher always reported ext4 as fs_type volume capability creating interference with some CSI drivers.
This patch adds a flag to csi-attacher binary which provides users with a workaround to set their own default filesystem or simply disable the interference by using an empty string:
./bin/csi-attacher --default-fstype ""When the flag is not used we still use ext4, next major release will allow behavior change and we can default to "" instead preserving the argument in case it's ever needed.
/kind bug
Which issue(s) this PR fixes:
Fixes #287
Does this PR introduce a user-facing change?: