47 Commits

Author SHA1 Message Date
andyzhangx
86f7309499 chore: fix ut 2024-11-23 03:04:36 +00:00
umagnus
0e85efab3d add timeout on mount 2024-11-15 03:43:58 +00:00
mengze zhu
8dbf16b548 chore: upgrade golint version 2024-09-06 03:55:16 +00:00
andyzhangx
a64df6f293 fix: NodeGetVolumeStats crash
fix
2023-12-27 13:56:18 +00:00
andyzhangx
37ab622a4d fix: add locks for nodeserver publish/unpublish operations 2023-12-23 13:09:37 +00:00
andyzhangx
432a3b9cbc fix: add VolumeStats cache to avoid massive statfs calls 2023-12-05 06:51:50 +00:00
umagnus
b89d93887d upgrade golangci/golangci-lint-action to v1.54 2023-11-20 09:05:40 +00:00
andyzhangx
ba1f1acedc feat: use force unmount to fix unmount failure issie 2023-01-08 02:44:35 +00:00
andyzhangx
a1eba060ee fix: default mountPermissions issue 2022-11-17 12:07:00 +00:00
andyzhangx
34d0e6d84d feat: support pv/pvc metadata in subDir parameter
fix

fix
2022-06-19 11:13:47 +00:00
andyzhangx
16c442ad78 feat: add subDir in storage class parameters
fix subdir

internal mount fix

mount subdir in NodePublishVolume

fix golint

fix

fix

setKeyValueInMap
2022-06-12 11:27:44 +00:00
andyzhangx
dcd24e51e6 feat: support IPv6 server address 2022-05-15 06:54:04 +00:00
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
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
andyzhangx
e86dc68c2a feat: add mountOptions parameter for inline volume
fix test failure
2022-01-11 13:54:21 +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
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
dcf1c46f8f feat: add registrar liveness probe 2021-10-09 04:08:39 +00:00
andyzhangx
f5abcf764a fix: remove unnecessary lock
fix golint
2021-05-19 13:33:39 +00:00
andyzhangx
e0d1832df3 chore: switch to use k8s.io/mount-utils 2021-04-24 01:44:34 +00:00
Jiaxun Song
dd1c04a88e feat: add locks for nodeserver publish/unpublish operations 2021-02-16 11:46:10 -08:00
andyzhangx
29ecada024 cleanup: disable NodeStageVolume 2021-01-30 01:52:22 +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
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
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
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
Jan Wozniak
679bb9dc07 Add dependency on k8s.io/utils/mount 2020-02-12 15:43:33 +01:00
Michelle Au
a7d05ccfc9 Add ability to use other mounters for unit testing 2019-08-15 17:41:53 -07:00
Mathusan Selvarajah
cc481ceade remove csi-common dependencies 2019-05-30 17:01:07 -04:00
Mathusan Selvarajah
959bfe4201 update nfs driver for kube 1.14 2019-04-23 15:43:27 -04:00
saad-ali
6200e12c21 Code changes for CSI v1.0.0-rc2 2018-11-14 19:58:28 -08:00
Serguei Bezverkhi
aa9ec2da56 refactor csi-common and hostpath plugin for CSI 0.2.0 spec 2018-03-06 11:14:25 -05:00
Humble Devassy Chirammal
650cb5b1f5 NFS driver: Change attribute on NodePublish() to reflect the examples. 2018-01-15 20:28:19 +05:30
Chakravarthy Nelluri
f481dddf44 Refactor to app & pkg directories 2017-12-04 15:01:40 -07:00