-
Notifications
You must be signed in to change notification settings - Fork 61
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
chore(docs): FilePermissions cas config user documentation #128
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #128 +/- ##
========================================
Coverage 49.79% 49.79%
========================================
Files 38 38
Lines 2705 2705
========================================
Hits 1347 1347
Misses 1255 1255
Partials 103 103 Continue to review full report at Codecov.
|
This PR introduces the FilePermissions `cas.openebs.io/config` PersistentVolumeClaim key. The data keys included within this config key are UID, GID, and mode. The openebs-nfs-provisioner process sets the values from these PersistentVolumeClaim keys into the ENVs FILEPERMISSIONS_UID, FILEPERMISSIONS_GID and FILEPERMISSIONS_MODE. The /nfs-server-container/nfsd.sh script issues chmod and chown commands to change the ownership and file mode of the shared filesystem directory (backend volume at /nfsshare). The checking criteria is similar to the Kubernetes fsGroupChangePolicy OnRootMismatch. NOTE: This also generates logs that announce the deprecation of the FSGID cas.openebs.io/config option in future releases. FSGID-like changes can be accomplished with file permissions. Instructions for this have been furnished in the user documentation(#128). If 'FSGID' is specified, and 'GID' and/or 'mode' FilePermissions keys are also specified, this is treated as an invalid input and provisioning fail. This is done to keep the file permissions strictly declarative. Signed-off-by: Niladri Halder <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good but we also need to update the troubleshooting doc with related changes
Can you also create another PR with helm changes for release? |
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Niladri Halder [email protected]
Why is this PR required? What issue does it fix?:
This PR contains the user documentation for the FilePermissions feature in #125
What this PR does?:
Adds docs/tutorials/file-permissions.md
Does this PR require any upgrade changes?:
No
If the changes in this PR are manually verified, list down the scenarios covered::
The instructions in this doc have been verified manually.
Any additional information for your reviewer? :
This PR should be merged as a release activity after #125 is merged.