drfish
d7fbf44361
Remove CSIDriverRegistry, BlockVolume and CSIBlockVolume feature flags
2021-02-19 23:40:28 +08:00
Jiawei Wang
43bc6fa806
Add csi_operations_seconds metrics on kubelet
2021-02-17 13:38:27 -08:00
Kubernetes Prow Robot
f5fb1c93db
Merge pull request #96021 from huffmanca/dont-remove-volume
...
Dont remove volumes when saveVolumeData fails
2021-02-04 18:20:51 -08:00
pacoxu
a10bdfed09
fix all keps links 404 for kep folder migration
...
Signed-off-by: pacoxu <paco.xu@daocloud.io >
2021-02-01 19:41:59 +08:00
Christian Huffman
15da65d9ae
Include unit test
2021-01-19 16:10:51 -05:00
Christian Huffman
df3119e815
Adjust defer to correctly call
2021-01-19 16:08:25 -05:00
fankangbest
b9afd2d34a
do not remove volume dir when saveVolumeData fails
2021-01-19 15:53:10 -05:00
Chris Henzie
736b7e15b7
Remove duplicate test CSI plugin constructor logic
2021-01-06 16:32:41 -08:00
Chris Henzie
359b9e3383
Ensure CSI test plugin informers are synced before returning
...
This way of syncing informers ensures all informers generated from these
factories are synced. Informers are lazy loaded, and only created once a
user calls .Informer() (which was why the .PollImmediate() worked).
Asserting the number of synced types to ensure everything is set up
correctly.
2021-01-06 16:11:50 -08:00
Chris Henzie
257704b30d
Remove setupInformer argument from test CSI plugin constructor
2021-01-06 16:11:50 -08:00
Chris Henzie
70eddfefec
Ensure goroutines exit in CSI attacher tests
...
The reason for adding an expectedVolumeHost field is to prevent a
channel read from hanging when a test fails prior to creating the
VolumeAttachment watch.
2021-01-06 16:11:50 -08:00
Chris Henzie
f098ada9d1
Extract watch reactor out of test CSI plugin constructor
2021-01-06 16:11:50 -08:00
Chris Henzie
195a5af23b
Make volume attachment watch timeout configurable for csiAttacher
2021-01-06 16:11:39 -08:00
Chris Henzie
b4e3f272b9
Remove unused waitSleepTime field in csiAttacher
2021-01-06 15:45:56 -08:00
Kubernetes Prow Robot
07bd985724
Merge pull request #96561 from ialidzhikov/cleanup/csi-node-info
...
Remove CSINodeInfo feature gate
2021-01-05 11:46:00 -08:00
he.qingguo
620c23473f
fix Spelling error for klog
...
Signed-off-by: he.qingguo <he.qingguo@zte.com.cn >
2020-12-28 10:50:06 +08:00
Chris Henzie
9d8f994d4e
Separate test Kubelet and AttachDetach VolumeHost types
...
fakeVolumeHost previously implemented both the KubeletVolumeHost and
AttachDetachVolumeHost interfaces. This design makes it difficult to test the
CSIAttacher since it behaves differently depending on what type of
VolumeHost is supplied.
2020-12-17 15:17:04 -08:00
ialidzhikov
bc432124a2
Remove CSINodeInfo feature gate
...
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com >
2020-12-10 09:58:22 +02:00
Christian Huffman
4d2d063635
Included e2e test for CSIDriver FSGroupPolicy
2020-11-12 16:30:38 -05:00
Christian Huffman
01f70d69b7
Move CSIVolumeFSGroupPolicy to beta
2020-11-12 16:28:54 -05:00
Shihang Zhang
d2859cd89b
plumb service account token down to csi driver
2020-11-12 09:26:43 -08:00
Kubernetes Prow Robot
2b4be7bb5f
Merge pull request #88759 from andyzhangx/csi-dir-fix
...
feat: ignore mount dir check in csi node stage/publish
2020-11-09 16:08:40 -08:00
Jan Safranek
9a765f8c2d
Restore staging path creation
...
CSI says about NodeStage (=MountDevice):
// The CO SHALL ensure [...]
// that the path is directory and that the process serving the
// request has `read` and `write` permission to that directory. The
// CO SHALL be responsible for creating the directory if it does not
// exist.
2020-11-09 19:22:29 +01:00
Jan Safranek
55ffd9d5fc
Add unit test for staging path creation
2020-11-09 19:22:25 +01:00
jornshen
db53ca01da
change plugin name in fsgroupapplymetrics of csi and flexvolume to
...
distinguish different driver
2020-11-04 16:28:28 +08:00
jornshen
4ed7709774
Report a metric for time taken to perform recursive permission change
2020-10-26 21:04:30 +08:00
Kubernetes Prow Robot
0b8c2bf1a1
Merge pull request #94735 from mikedanese/flake
...
test flake: fix data race in csi_test.go
2020-09-22 12:24:01 -07:00
Srini Brahmaroutu
fbe5daed73
Change code to use staging/k8s.io/mount-utils
2020-09-16 21:51:24 -07:00
knight42
e89e72b637
test: ensure WaitForCacheSync is called after starting sharedInformerFacotry
...
Signed-off-by: knight42 <anonymousknight96@gmail.com >
2020-09-15 16:02:35 +08:00
Mike Danese
94f4f06d13
test flake: fix data race in csi_test.go
...
The attach goroutine can currently t.Log/t.Error during or after the
subtest completion. This causes races like:
```
==================
WARNING: DATA RACE
Read at 0x00c000e90ac3 by goroutine 1231:
testing.(*common).logDepth()
GOROOT/src/testing/testing.go:736 +0xa9
testing.(*common).log()
GOROOT/src/testing/testing.go:729 +0x8f
testing.(*common).Logf()
GOROOT/src/testing/testing.go:775 +0x21
k8s.io/kubernetes/pkg/volume/csi.TestCSI_VolumeAll.func21.1()
pkg/volume/csi/csi_test.go:313 +0x1a4
Previous write at 0x00c000e90ac3 by goroutine 875:
testing.tRunner.func1()
GOROOT/src/testing/testing.go:1113 +0x484
testing.tRunner()
GOROOT/src/testing/testing.go:1131 +0x22a
testing.tRunner()
GOROOT/src/testing/testing.go:1127 +0x202
Goroutine 1231 (running) created at:
k8s.io/kubernetes/pkg/volume/csi.TestCSI_VolumeAll.func21()
pkg/volume/csi/csi_test.go:307 +0xf05
testing.tRunner()
GOROOT/src/testing/testing.go:1127 +0x202
Goroutine 875 (running) created at:
testing.(*T).Run()
GOROOT/src/testing/testing.go:1178 +0x796
k8s.io/kubernetes/pkg/volume/csi.TestCSI_VolumeAll()
pkg/volume/csi/csi_test.go:223 +0xb2c
testing.tRunner()
GOROOT/src/testing/testing.go:1127 +0x202
==================
```
See also this comment:
07c1788357/src/testing/testing.go (L1141-L1142)
Noticed in:
https://github.com/kubernetes/kubernetes/pull/94449
https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/94449/pull-kubernetes-bazel-test/1304519003330318337
2020-09-11 22:19:42 -07:00
Kubernetes Prow Robot
30a9b8b126
Merge pull request #94389 from pacoxu/fix/94378
...
add lock for csi node update
2020-09-09 06:36:07 -07:00
Kubernetes Prow Robot
6ee74bf600
Merge pull request #94031 from knight42/fix/TestAttacherWithCSIDriver
...
test(csi): deflake TestAttacherWithCSIDriver
2020-09-03 11:13:55 -07:00
knight42
469f59a52a
test(csi): deflake TestAttacherWithCSIDriver
...
Signed-off-by: knight42 <anonymousknight96@gmail.com >
2020-09-03 22:39:40 +08:00
pacoxu
2360f228ab
add lock for csi node update
...
Signed-off-by: pacoxu <paco.xu@daocloud.io >
2020-09-01 15:52:04 +08:00
Kubernetes Prow Robot
2e59a17dc1
Merge pull request #92288 from zhijianli88/cleanup-tempfiles
...
Cleanup tempfiles
2020-08-27 17:56:54 -07:00
Kubernetes Prow Robot
96c057ab48
Merge pull request #92001 from huffmanca/include-csidriver-fsgroup
...
Include CSIDriver capability to indicate fsGroup support
2020-07-16 09:11:42 -07:00
Hemant Kumar
ade2f83685
Simplify the code
2020-07-11 23:29:24 -04:00
Christian Huffman
58bd3e5230
Include CSIDriver SupportsFsGroup
2020-07-11 23:29:24 -04:00
Hemant Kumar
b8c0435bc2
Handle volume-in-use error
2020-07-11 09:02:58 -04:00
Hemant Kumar
6342dad709
Ensure that StagingPath is supplied to blockVolume expansion
2020-07-01 12:21:17 -04:00
Hemant Kumar
69613da0ae
rename volumeid to volumeID
2020-07-01 11:34:31 -04:00
Hemant Kumar
75e13e370e
Supply staging path for block expansion
2020-07-01 11:34:31 -04:00
Hemant Kumar
7d6959ce2c
Add extra fields in node expansion CSI call
2020-07-01 11:34:31 -04:00
Kubernetes Prow Robot
14c69640d0
Merge pull request #87166 from jingxu97/Jan/mountcheckfix
...
Fix issue in kubelet getMountedVolumePathListFromDisk
2020-06-25 09:45:39 -07:00
Li Zhijian
02eaa4f354
cleanup tempfiles in unit test
...
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com >
2020-06-23 11:47:18 +08:00
Jing Xu
7012994a61
Fix issue in kubelet getMountedVolumePathListFromDisk
...
This PR fixes issue #74650 . It adds the extra check for /mount dir under
pod volume dir. It also adds the unit test for this function
2020-06-22 10:00:43 -07:00
Kubernetes Prow Robot
98f250f883
Merge pull request #91307 from yuga711/attach
...
CSI: Modify VolumeAttachment check to use Informer/Cache
2020-06-15 08:10:10 -07:00
Jayasekhar Konduru
2a89577659
CSI: Modify VolumeAttachment check to use Informer/Cache
...
Change-Id: Ie70c8b6657c67eefbf13042f36d56ca84a2e42bb
2020-06-11 10:34:09 -07:00
Divyen Patel
148ef06a3d
vSphere in-tree volumes migration to vSphere CSI driver
2020-06-08 16:17:02 -07:00
Davanum Srinivas
07d88617e5
Run hack/update-vendor.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2020-05-16 07:54:33 -04:00