133 Commits

Author SHA1 Message Date
andyzhangx
d2344ce642 chore: refine bypass chmod code 2022-05-13 13:45:47 +00:00
andyzhangx
770d104c4a fix: check mount dir mode before chmod
fix
2022-05-12 13:16:43 +00:00
andyzhangx
56cc263e90 cleanup: refine mount logging 2022-05-05 11:44:36 +00:00
andyzhangx
90cc83fdbd feat: skip chmod if mountPermissions is 0
fix
2022-05-04 08:53:21 +00:00
andyzhangx
38b6ba2eb9 fix: use mount.CleanupMountPoint in NodeUnpublishVolume 2022-04-24 02:43:30 +00:00
Niels de Vos
a59837abe1 fix: NodeUnpublishVolume should be idempotent
In case the NodeUnpublishVolume procedure was aborted after unmounting
the volume, a repeated call will return an error like "Volume not
mounted".

Instead of returning the error, log a message and return success to
indicate that the volume is not mounted anymore.
2022-04-23 16:48:20 +02:00
andyzhangx
dd2a7132b6 fix: disallow block volume capability 2022-04-09 11:32:50 +00:00
andyzhangx
3c258fee98 test: add unit test 2022-03-05 13:41:22 +00:00
andyzhangx
14275e0be0 feat: add mountPermissions parameter in storage class 2022-03-05 13:23:45 +00:00
Andy Zhang
fb28204a23
Merge pull request #266 from andyzhangx/inline-volume
feat: add inline volume support
2022-01-13 10:09:59 +08:00
andyzhangx
e86dc68c2a feat: add mountOptions parameter for inline volume
fix test failure
2022-01-11 13:54:21 +00:00
andyzhangx
9b3e1cd174 fix: ValidateVolumeCapabilities 2022-01-07 03:57:31 +00:00
andyzhangx
e03c3b833b feat: change volume id format
test: fix Windows test failure

fix windows test
2022-01-05 12:24:58 +00:00
andyzhangx
405a69cf24 feat: add workingMountDir in chart config
fix tests

sudo

fix

test: fix test failure

fix test

install go 1.17

fix ut

fix test

fix test

fix test

fix tests

fix workingMountDir
2022-01-04 13:43:06 +00:00
andyzhangx
d0ea11dac3 feat: support mountOptions in DeleteVolume
chore: provider secrets get permission

add logging
2022-01-03 02:07:00 +00:00
andyzhangx
df5fefd8d6 cleanup: remove cpu limits 2021-12-27 03:38:01 +00:00
andyzhangx
0e3ede5a21 feat: add node.mountPermissions in chart
fix controller

update chart

fix chart

update chart

update chart

fix mountPermissions
2021-12-20 08:01:06 +00:00
andyzhangx
aab43558bc fix: driver version print in logging 2021-12-07 07:44:12 +00:00
antmoveh
ee1b589f17 reset directory permissions
update commit user


update commit user
2021-10-18 14:23:49 +08:00
andyzhangx
dcf1c46f8f feat: add registrar liveness probe 2021-10-09 04:08:39 +00:00
andyzhangx
fd5bac4692 feat: ReadWriteOncePod support
update controller cap

add node cap

fix test
2021-09-20 03:04:57 +00:00
andyzhangx
958efd92ca feat: support alternative driver name
fix driver name
2021-07-10 12:33:55 +00:00
Kubernetes Prow Robot
79afaa1f89
Merge pull request #197 from boddumanohar/cleanup-todo
Remove capacity setting in create Volume response
2021-05-23 20:07:38 -07:00
andyzhangx
f5abcf764a fix: remove unnecessary lock
fix golint
2021-05-19 13:33:39 +00:00
Manohar Reddy
98ec1a8aaf Remove capacity setting in create Volume response 2021-05-05 15:42:48 +00:00
andyzhangx
e0d1832df3 chore: switch to use k8s.io/mount-utils 2021-04-24 01:44:34 +00:00
Jürgen Thomann
6867a95639 Allow shares that are not at the root 2021-04-13 20:53:58 +02:00
Jiaxun Song
dd1c04a88e feat: add locks for nodeserver publish/unpublish operations 2021-02-16 11:46:10 -08:00
andyzhangx
1c97d2cce4 test: set lower logLevel in e2e test
update chart file
2021-02-11 01:50:14 +00:00
andyzhangx
e8ea4c3be2 fix: makeDir error in CreateVolume 2021-02-10 14:42:19 +00:00
Manohar Reddy
38780f4630 provide more driver info in logs 2021-02-05 12:26:33 +05:30
andyzhangx
29ecada024 cleanup: disable NodeStageVolume 2021-01-30 01:52:22 +00:00
andyzhangx
f05d3ca943 chore: rename indentityserver.go to identityserver.go 2021-01-21 04:00:56 +00:00
andyzhangx
e7cdcedcc4 fix: reduce driver logs 2021-01-20 06:53:19 +00:00
andyzhangx
4e11d4322d chore: use klog instead of glog
chore: use klog in nfs binary build

update go mod
2021-01-19 14:37:40 +00:00
Saurav Tiwary
d83f52d916 test: Add missing unit tests for controller server and utils 2021-01-03 21:25:53 +05:30
andyzhangx
48406c1afd test: add VolumeGetStats test 2021-01-03 12:22:00 +00:00
andyzhangx
94e5bf7020 feat: add NodeGetVolumeStats support 2021-01-03 12:02:13 +00:00
andyzhangx
3622c703d6 chore: refactor logging 2020-12-27 12:54:25 +00:00
andyzhangx
a0ad5ca5b6 fix: support mountOptions in CreateVolume 2020-12-27 03:59:09 +00:00
andyzhangx
4c6213dc3f chore: switch to 3.0.0 for master branch
revise version

sleep 10s
2020-12-26 02:45:23 +00:00
Mayank Shah
9f73baae64 test: Add remaining unit tests
Signed-off-by: Mayank Shah <mayankshah1614@gmail.com>
2020-11-24 12:38:52 +05:30
Mayank Shah
35e3b0a065 test: Add unit tests for identityserver and nodeserver
Signed-off-by: Mayank Shah <mayankshah1614@gmail.com>
2020-11-23 12:42:32 +05:30
Jiaxun Song
bfdc82f398 fix: make verify checks 2020-11-18 19:02:49 +00:00
Jiaxun Song
868db6667a fix: internalUnmount failure and DeleteVolume failure 2020-11-17 05:38:02 +00:00
Jiaxun Song
c84426fb4e test: add make verify 2020-11-16 20:36:41 +00:00
Mayank Shah
5747698dff Add DynamicallyProvisionedCmdVolumeTest
Signed-off-by: Mayank Shah <mayankshah1614@gmail.com>
2020-11-11 20:47:25 +05:30
Mayank Shah
93523b272c feat: implement CreateVolume and DeleteVolume
Signed-off-by: Mayank Shah <mayankshah1614@gmail.com>
2020-10-14 21:39:57 +05:30
andyzhangx
f90b4ece9e fix: all sanity test failures
fix tests

remove logging
2020-08-22 01:36:22 +00:00
Mike Fedosin
070c69ef20 Allow to set custom permissions for the mounted folder
For RWX volume, kubelet does not perform recursive ownership/permission
change. The heuristics that kubelet uses is being modified via -
https://github.com/kubernetes/enhancements/issues/1682

Having said that, for RWX volumes which are made available via NFS
protocol, using fsGroup is not recommended because if there are 2 pods
that are trying to use same volume but with different fsGroup then one
pod may lock out the other pod.

To avoid this, we must be able to set the folder permissions to 777.
This commit adds a cli option --mount-permissions, that allows to
define custom permissions. If the value is not specified, then default
permissions will be kept.

Cherry-picked from: https://github.com/kubernetes-csi/csi-driver-nfs/pull/36
2020-06-18 18:25:10 +02:00