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

chore(docs): FilePermissions cas config user documentation #128

Merged
merged 4 commits into from
Jan 5, 2022

Conversation

niladrih
Copy link
Member

@niladrih niladrih commented Dec 8, 2021

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.

@codecov-commenter
Copy link

Codecov Report

Merging #128 (bbb6cf4) into develop (59d00f6) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

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

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 347ab2f...bbb6cf4. Read the comment docs.

mittachaitu pushed a commit that referenced this pull request Dec 14, 2021
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]>
Copy link
Contributor

@mittachaitu mittachaitu left a 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

docs/tutorial/file-permissions.md Outdated Show resolved Hide resolved
@mittachaitu
Copy link
Contributor

Can you also create another PR with helm changes for release?

Copy link
Contributor

@mittachaitu mittachaitu left a comment

Choose a reason for hiding this comment

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

LGTM

@mittachaitu mittachaitu merged commit d0cdbb5 into openebs-archive:develop Jan 5, 2022
@niladrih niladrih deleted the helm branch January 5, 2022 16:55
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.

3 participants