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

Change fsGroupPolicy to File #1377

Merged
merged 1 commit into from Sep 13, 2022
Merged

Change fsGroupPolicy to File #1377

merged 1 commit into from Sep 13, 2022

Conversation

ConnorJC3
Copy link
Contributor

See #1365 (comment)

This might need to be revisited in the future with multi-attach volumes, but for now is 100% safe.

Signed-off-by: ConnorJC <github@connorjc.io>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 8, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @ConnorJC3. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions 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.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 8, 2022
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 8, 2022
@gnufied
Copy link
Contributor

gnufied commented Sep 8, 2022

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 8, 2022
@gnufied
Copy link
Contributor

gnufied commented Sep 8, 2022

This might need to be revisited in the future with multi-attach volumes, but for now is 100% safe.

Is the driver going to support read-write-many multi-attach volumes? It seems like standard filesystems like ext4, XFS does not have necessary fencing to multi-attach same volume in write mode.

If multi-attach will only support read-only, we should still be fine with file as fsGroupPolicy.

@ConnorJC3
Copy link
Contributor Author

EBS has multiple writer support for multi-attach volumes, but I've heard it's very wonky and has several limitations. I haven't tested but I assume they at least partially deal with the filesystem issue on their end?

There's a long-open PR for multi-atrach support that would allow multiple writers (#1178), but it needs serious reworking and probably won't be merged anytime soon.

@torredil
Copy link
Member

torredil commented Sep 8, 2022

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 8, 2022
@gtxu
Copy link
Contributor

gtxu commented Sep 13, 2022

/lgtm

@gnufied
Copy link
Contributor

gnufied commented Sep 13, 2022

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ConnorJC3, gnufied

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 13, 2022
@k8s-ci-robot k8s-ci-robot merged commit 2cfd781 into kubernetes-sigs:master Sep 13, 2022
@z0rc
Copy link

z0rc commented Sep 16, 2022

This changes immutable field in CSIDriver resource on existing deployments. It was undefined previously and therefore kubernetes sets it to ReadWriteOnceWithFSType by default.

How this change is expected to be applied by end user?

@gnufied
Copy link
Contributor

gnufied commented Sep 16, 2022

Hmm. not a helm person, but is there a way it could delete and recreate the resource for immutable fields? We do that in our operators when something immutable has to be changed inside an object. :(

@ConnorJC3
Copy link
Contributor Author

ConnorJC3 commented Sep 16, 2022

@gnufied unfortunately, as far as I can tell, no. You might be able to get that behavior with helm install --replace, but the docs explicitly call that option out as "not production ready" (and there is no --replace argument to helm upgrade, which makes it even more jank).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants