Travis Rhoden
be7da5052f
Refactor pkg/util/mount to be more reusable
...
This patch refactors pkg/util/mount to be more usable outside of
Kubernetes. This is done by refactoring mount.Interface to only contain
methods that are not K8s specific. Methods that are not relevant to
basic mount activities but still have OS-specific implementations are
now found in a mount.HostUtils interface.
2019-06-14 09:35:18 -06:00
caiweidong
b726db66d2
Remove dead codes
2019-06-03 22:15:53 +08:00
Kubernetes Prow Robot
fad34e404e
Merge pull request #76188 from humblec/csi-in-m
...
csi: Implement NodeServiceCapability_RPC_GET_VOLUME_STATS rpc call
2019-05-17 20:26:09 -07:00
Humble Chirammal
c511c90b59
csi: Implement NodeServiceCapability_RPC_GET_VOLUME_STATS rpc call
...
and implement Metrics Provider for CSI driver
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2019-05-17 17:10:53 +05:30
caiweidong
62fe5fe7b8
add common func for NewAttacher and NewDetacher
2019-05-04 11:08:28 +08:00
Humble Chirammal
a3c1a6da02
Error message corrections
...
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2019-05-01 13:36:52 +05:30
Kubernetes Prow Robot
29163600fe
Merge pull request #76796 from dims/remove-unused-methods
...
Remove unused code
2019-04-19 11:09:55 -07:00
Davanum Srinivas
7b8c9acc09
remove unused code
...
Change-Id: If821920ec8872e326b7d85437ad8d2620807799d
2019-04-19 08:36:31 -04:00
Vladimir Vivien
d564d2e74d
CSI - Prevents unsupported device mount with CanMountDevice(spec) check
2019-04-18 19:54:28 -04:00
Vladimir Vivien
cfafde983b
Volume AttachablePlugin.CanAttach() now returns both bool and error
2019-04-08 16:53:22 -04:00
Xing Yang
000ab86788
Move CSIDriver Lister to the controller
2019-04-05 12:20:11 -07:00
Vladimir Vivien
3777514f83
Adds DeviceMountablePlugin.CanDeviceMount check when retrieving plugins
2019-03-28 10:39:32 -04:00
Kubernetes Prow Robot
517922f31a
Merge pull request #75308 from msau42/csi-beta-e2e
...
ignore kubeclient nil in csi plugin init
2019-03-13 05:49:46 -07:00
Michelle Au
398777f261
ignore kubeclient nil in csi plugin init
2019-03-12 16:29:08 -07:00
Yecheng Fu
fa926ed6e0
Delay CSI client initialization
2019-03-09 13:45:03 +08:00
Vladimir Vivien
923ad369c8
CSI Inline Volume - Kubelet/Driver code impl
2019-03-08 12:40:09 -05:00
David Zhu
41b3579345
Address review comments
2019-03-07 17:17:09 -08:00
David Zhu
34d9ee5b9b
Add CSINode initialization for CSIMigration on node startup before pod ready
2019-03-07 14:47:38 -08:00
Xing Yang
6265f4f78c
CSINodeInfo/CSIDriver controller changes
...
This is the 2nd PR to move CSINodeInfo/CSIDriver APIs to
v1beta1 core storage APIs. It includes controller side changes.
It depends on the PR with API changes:
https://github.com/kubernetes/kubernetes/pull/73883
2019-03-04 16:41:58 -08:00
Andrew Kim
01933b02a3
replace usage of v1beta1 VolumeAttachments with v1
2019-02-27 15:42:12 -05:00
Kubernetes Prow Robot
b8b143410f
Merge pull request #74076 from bertinatto/reg_error
...
Don't return CSI driver unregistration error
2019-02-19 08:37:29 -08:00
Fabio Bertinatto
d6c642b46a
Only return CSI driver registration error
2019-02-16 10:06:33 +01:00
David Zhu
5dde1df1cd
Migration shim logic for Persistent Volumes for Attach/Detach
2019-02-14 17:04:23 -08:00
Vladimir Vivien
0a653b3b80
Adds method CanAttach() to check plugin attachability
2019-02-08 08:04:15 -05:00
Kubernetes Prow Robot
2d956389dc
Merge pull request #73313 from pivotal-k8s/csi-drivers-list
...
Refactor csiDriversStore
2019-02-06 09:31:06 -08:00
Tara Gu
1f822030a4
Correct error message
2019-01-29 21:14:26 -05:00
Tara Gu
ad4bd8bdac
Add exponential backoff for plugin registration
2019-01-29 21:13:02 -05:00
Hannes Hörl
84c46629c5
Refactor to use new csi.DriversList & csi.Driver
2019-01-25 12:23:28 +00:00
David Zhu
d8c9dc5bb5
Add IsMigratableToCSI to volume plugin interface
2019-01-17 14:43:52 -08:00
saad-ali
18050e308c
Allow CSI Drivers suporting 0.x/1.x to use old dir
...
Allow drivers implmenting both CSI 0.x and 1.x to use the old volume
plugin directory in addition to the the new volume plugin directory.
2018-11-28 11:11:37 -08:00
saad-ali
aa8244beb5
Modify CSI to handle both 0.3 and 1.0
...
Modify the CSI volume plugin to handle CSI version 0.x as well as 1.x
2018-11-21 18:37:31 -08:00
saad-ali
8f666d9e41
Modify kubelet watcher to support old versions
...
Modify kubelet plugin watcher to support older CSI drivers that use an
the old plugins directory for socket registration.
Also modify CSI plugin registration to support multiple versions of CSI
registering with the same name.
2018-11-21 18:37:31 -08:00
Davanum Srinivas
954996e231
Move from glog to klog
...
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
* github.com/kubernetes/repo-infra
* k8s.io/gengo/
* k8s.io/kube-openapi/
* github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods
Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
David Zhu
06f3b26012
Change semantics of driver install and uninstall in CSINodeInfo to use new fields.
2018-11-08 19:45:01 -08:00
Vladimir Vivien
df280251e7
CSI Kubelet Plugin Watcher unregistration
2018-11-01 13:53:55 -04:00
Ben Swartzlander
65d3beb820
Add support for mount options to CSI drivers
2018-10-11 13:39:19 -04:00
Cheng Xing
a8e282e905
Delaying kubeclient and csi client injection into CSI plugin
2018-09-13 14:10:49 -07:00
Cheng Xing
4ca39ef0ed
Consolidated CSIDriver logic under CSIDriverRegistry flag
2018-09-10 13:34:40 -07:00
Cheng Xing
94d649b590
Rearranged feature flags
2018-09-07 17:45:27 -07:00
Cheng Xing
becc6a9c19
Implemented logic in kubelet for registering node info, including wiring to CSINodeInfo; added unit tests for node updates; updated RBAC, NodeAuthorizer, NodeRestriction.
2018-09-06 19:16:51 -07:00
Renaud Gaubert
78b55eb5bf
Updated the CSI pluginwatcher handler
2018-09-06 15:34:46 +02:00
Kubernetes Submit Queue
ca43f007a3
Merge pull request #67731 from gnufied/fix-csi-attach-limit
...
Automatic merge from submit-queue (batch tested with PRs 68161, 68023, 67909, 67955, 67731). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md .
Fix csi attach limit
Add support for volume limits for CSI.
xref: https://github.com/kubernetes/community/pull/2051
```release-note
Add support for volume attach limits for CSI volumes
```
2018-09-05 14:51:55 -07:00
Jan Safranek
c6c74d6846
Skip attach for non-attachable CSI volumes
2018-09-05 10:15:43 -04:00
Jan Safranek
7c1311bcdb
Add CSIDriver lister to CSI plugin
...
So we don't instantiate a new lister in every SetUpAt() call.
2018-09-05 10:15:43 -04:00
Jan Safranek
7d673cb8f0
Pass new CSI API Client and informer to Volume Plugins
2018-08-31 12:25:59 -07:00
Hemant Kumar
4b17a48def
Implement support for updating volume limits
...
Create a new predicate to count CSI volumes
2018-08-22 19:36:00 -04:00
Kubernetes Submit Queue
c5e74d128d
Merge pull request #66884 from NickrenREN/attacher-detacher-refactor
...
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md ">here</a>.
Attacher/Detacher refactor for local storage
Proposal link: https://github.com/kubernetes/community/pull/2438
**What this PR does / why we need it**:
Attacher/Detacher refactor for the plugins which just need to mount device, but do not need to attach, such as local storage plugin.
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #
**Special notes for your reviewer**:
```release-note
Attacher/Detacher refactor for local storage
```
/sig storage
/kind feature
2018-08-15 07:03:48 -07:00
NickrenREN
81e360d20f
update volume plugins accordingly
2018-08-14 11:12:54 +08:00
Cheng Xing
7fa120c18c
CSI plugin now calls NodeGetInfo() to get driver's node ID
2018-08-08 13:15:43 -07:00
Seungcheol Ko
43f805b7bd
Fix a typo in csiPlugin comment
2018-07-19 21:01:09 +09:00