Skip to content

feat: add mountPermissions parameter in storage class#292

Merged
andyzhangx merged 2 commits into
kubernetes-csi:masterfrom
andyzhangx:mountPermissions
Mar 16, 2022
Merged

feat: add mountPermissions parameter in storage class#292
andyzhangx merged 2 commits into
kubernetes-csi:masterfrom
andyzhangx:mountPermissions

Conversation

@andyzhangx
Copy link
Copy Markdown
Member

@andyzhangx andyzhangx commented Mar 5, 2022

What type of PR is this?
/kind feature

What this PR does / why we need it:
feat: add mountPermissions parameter in storage class
user could set customized mountPermissions in storage class, e.g.

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: nfs-csi
provisioner: nfs.csi.k8s.io
parameters:
  server: nfs-server.default.svc.cluster.local
  share: /
  mountPermissions: "0755"
reclaimPolicy: Delete
volumeBindingMode: Immediate
mountOptions:
  - hard
  - nfsvers=4.1

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

feat: add mountPermissions parameter in storage class

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Mar 5, 2022
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andyzhangx

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

The pull request process is described here

Details 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 5, 2022
@andyzhangx
Copy link
Copy Markdown
Member Author

/retest

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 5, 2022
@coveralls
Copy link
Copy Markdown

coveralls commented Mar 5, 2022

Pull Request Test Coverage Report for Build 1938257695

  • 47 of 49 (95.92%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.2%) to 77.868%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/nfs/controllerserver.go 37 39 94.87%
Files with Coverage Reduction New Missed Lines %
pkg/nfs/controllerserver.go 2 74.63%
Totals Coverage Status
Change from base Build 1921363155: 0.2%
Covered Lines: 577
Relevant Lines: 741

💛 - Coveralls

@andyzhangx andyzhangx merged commit 8b53ffd into kubernetes-csi:master Mar 16, 2022
andyzhangx added a commit to andyzhangx/csi-driver-nfs that referenced this pull request Jan 30, 2026
b60b9a50 Merge pull request kubernetes-csi#292 from andyzhangx/patch-8
0e4e2ed0 Update Go version from 1.25.5 to 1.25.6 to fix CVE
707a99ec Merge pull request kubernetes-csi#291 from dfajmon/logcheck
a9d2b0fb Bump logcheck to v0.10.0
d6846630 Merge pull request kubernetes-csi#290 from dfajmon/go-1.25.5
55e527c4 Bump golang to 1.25.5

git-subtree-dir: release-tools
git-subtree-split: b60b9a507e51e7d1bb3393509462c860e6f74cd8
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. kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants