Commit Graph

3211 Commits

Author SHA1 Message Date
tanjing2020
3398401c06 fix staticcheck:pkg/volume/testing
pkg/volume/testing/testing.go:417:16: possible nil pointer derefence (SA5011)
2020-11-17 14:45:13 +08:00
Hemant Kumar
742436c431 Reduce volume name length for vsphere 2020-11-16 11:28:26 -05:00
xiongzhongliang
0d2b542dde fix typo and format for klog 2020-11-14 23:44:38 +08:00
10177505
7531e2a311 Fix typo unmount for klog 2020-11-14 11:32:39 +08: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
Mauricio Vásquez
119040ac77 volume: Add unit test for SetVolumeOwnership owners
Former TestSetVolumeOwnership only checks the mode of the files. This commit
adds a new TestSetVolumeOwnershipOwner that checks the ownership of the files.
2020-11-11 09:23:16 -05:00
Mauricio Vásquez
7d293e3efa volume: Change owner of symlinks too
This commit uses Lchown instead of Chown to change the owner of symlinks too.
It doesn't change any behaviour. However, it could avoid some confusions as the
symlinks are updated to the correct owner too.
2020-11-11 08:32:46 -05:00
Kubernetes Prow Robot
0923b9abce Merge pull request #95206 from misterikkit/quobyte-update
storage: Use FilteredDialContext in quobyte client
2020-11-10 21:44:30 -08:00
Jonathan Basseri
dfe6ea6df6 Use FilteredDialContext with quobyte API
This injects the filtered DialContext behavior from VolumeHost into the
quobyte plugin, which allows us to configure a host deny list for the
plugin.

There should be no change in timeouts, because we are able to use the
same default transport settings as before.
2020-11-10 11:21:04 -08:00
Kubernetes Prow Robot
f458996af1 Merge pull request #95770 from jingxu97/oct/readyfile
Remove ready directory which created in empty volumeMounter setUp func
2020-11-10 10:54:40 -08:00
Jing Xu
a4aa494cc1 Remove ready directory which created in empty volumeMounter setUp func
Change-Id: I2384b07c7a044149e93e951a45f9f8a7bd9dba15
2020-11-09 23:12:21 -08:00
Kubernetes Prow Robot
734889ed82 Merge pull request #96224 from gnufied/add-dangling-error-vsphere
Add dangling volume check for vsphere
2020-11-09 16:09:09 -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
Hemant Kumar
6c4c5ab691 Add dangling volume check for vsphere 2020-11-09 15:39:17 -05:00
Jan Safranek
6060c57ba3 Call MountDevice only once
Cann MountDevice only when the volume was not device-mounted before.
2020-11-09 19:22:29 +01:00
Jan Safranek
b3b53cbf63 Mark MountDevice as uncertain after failed resize
When NodeExpand fails between MountDevice and SetUp, make sure the next
NodeExpand attempt is called before SetUp.
2020-11-09 19:22:29 +01: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
Kubernetes Prow Robot
0e42122270 Merge pull request #96308 from andyzhangx/update-max-azuredisk-count
update max azure data disk count map
2020-11-07 02:33:38 -08:00
Derek Carr
7eb37a7497 Add support to size memory backed volumes 2020-11-06 09:35:14 -05:00
Kubernetes Prow Robot
512b7b75a8 Merge pull request #96006 from serathius/datapolicy-volume
Add datapolicy tags to pkg/volume/
2020-11-06 06:22:50 -08:00
andyzhangx
72508c201c update max azure data disk count map 2020-11-06 14:16:55 +00:00
Tim Hockin
819ff9b087 Use topology labels instead of old beta names (#96033)
* Rename const for topology.../zone

* Rename const for topology.../region

* Rename const for failure-domain.../zone

* Rename const for failure-domain.../region

* Restore old names for compat
2020-11-05 20:26:50 -08:00
Kubernetes Prow Robot
fe5f2cf8ef Merge pull request #95892 from JornShen/fix_plugin_name_for_fsgroupmetrics
Fix plugin name in fsgroupapplymetrics of csi and flexvolume
2020-11-04 16:40:53 -08:00
Kubernetes Prow Robot
71fea80155 Merge pull request #92692 from Pingan2017/verify-controller-attach
fix bug for verify attached volume loop
2020-11-04 05:22:04 -08:00
jornshen
db53ca01da change plugin name in fsgroupapplymetrics of csi and flexvolume to
distinguish different driver
2020-11-04 16:28:28 +08:00
Kubernetes Prow Robot
e9cfb34b8f Merge pull request #95995 from serathius/datapolicy-legacy-cloud-providers
Add datapolicy tags to  staging/src/k8s.io/legacy-cloud-providers
2020-11-03 09:38:03 -08:00
Kubernetes Prow Robot
bf67247124 Merge pull request #93258 from zshihang/token
mv TokenRequest and TokenRequestProjection to GA
2020-10-30 16:36:51 -07:00
Marek Siarkowicz
973218b17d Add datapolicy tags to pkg/volume/ 2020-10-30 15:51:36 +01:00
Shihang Zhang
ff641f6eb2 mv TokenRequest and TokenRequestProjection to GA 2020-10-29 20:47:01 -07:00
Cheng Xing
d9a629fe3a IsVolumeAttachedToNode() renamed to GetAttachState(), and returns 3 states instead of combining "uncertain" and "detached" into "false" 2020-10-29 13:24:51 -07:00
Marek Siarkowicz
6c7132b284 Add datapolicy tags to staging/src/k8s.io/legacy-cloud-providers 2020-10-29 19:47:32 +01:00
Mike Dame
b7ba77c25b Move MatchNodeSelectorTerms to k8s.io/component-helpers 2020-10-29 13:39:13 -04:00
Kubernetes Prow Robot
2729b8e375 Merge pull request #95871 from damemi/move-unchanged-scheduler-helpers
Change function signature for MatchNodeSelectorTerms
2020-10-29 04:18:59 -07:00
Cheng Xing
a61743b125 Fixes Attach Detach Controller reconciler race reading ActualStateOfWorld and operation pending states; fixes reconciler_test mock detach to account for multiple attaches on a node 2020-10-27 23:51:55 -07:00
Kubernetes Prow Robot
2754cc23e2 Merge pull request #95801 from jingxu97/oct/owner
Add jingxu97 to volume/util owners
2020-10-27 14:26:11 -07:00
Mike Dame
d9f334683e Change function signature for MatchNodeSelectorTerms
As part of externalizing this function to the k8s.io/component-helpers repo,
this commit simplifies the function signature and makes its 2 helpers private
(nodeSelectorRequirementsAsSelector and nodeSelectorRequirementsAsFieldSelector).
2020-10-27 12:52:06 -04:00
jornshen
4ed7709774 Report a metric for time taken to perform recursive permission change 2020-10-26 21:04:30 +08:00
Jing Xu
e233a7220b Add jingxu97 to volume/util owners
Add myself to volume/util/operationexecutor owner

Change-Id: I85424e7ede4f6c136bed65c619aa48e856e8770f
2020-10-22 20:31:31 -07:00
Pingan2017
a1063c924b fix loop bug for verify attached volume 2020-10-22 13:58:40 +08:00
Kubernetes Prow Robot
d970c18ab8 Merge pull request #95451 from mkumatag/fix_fc
Fix fcpath
2020-10-15 07:10:39 -07:00
Kubernetes Prow Robot
978233775e Merge pull request #94992 from lala123912/gxf
fix pkg/volume/util static checks
2020-10-15 00:44:24 -07:00
Manjunath A Kumatagi
4a75c7ef1e Fix fcpath 2020-10-14 21:15:22 +05:30
Kubernetes Prow Robot
e799c852fb Merge pull request #95447 from gnufied/fix-disk-detach-failure
Fix vsphere disk detach failure
2020-10-13 03:36:41 -07:00
tashen
27cb5cf4f0 add systemd mount options interface to support the no-systemd mount 2020-10-13 13:46:57 +08:00
Hemant Kumar
5627771601 Fix vsphere disk detach failing
Make inability to fetch canonicalPath non-fatal error
Throw error if we can't fetch canonicalPath on attach
2020-10-12 21:58:28 -04:00
andyzhangx
9e35244c6c fix azure disk data loss issue on Windows 2020-10-10 02:20:49 +00:00
Sam Fowler
e91ec4fad3 Mask Ceph RBD adminSecrets in logs when logLevel >= 4 2020-10-02 10:48:11 +10:00