You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- allow CSI to be used only via PersistentVolumes, no inline volumes in Pods
- use CSIPersistentVolumeSource instead of CSIVolumeSource
- update json and protobuf tags
- use SecretReference instead of ObjectReference
A new `CSIVolumeSource` object will be added to the Kubernetes API. It will be part of the existing `VolumeSource` and `PersistentVolumeSource` objects. This will enable Kubernetes users to use the new volume just like existing volume via a `PersistentVolume` or as a direct reference in a pod.
237
+
A new `CSIPersistentVolumeSource` object will be added to the Kubernetes API. It will be part of the existing `PersistentVolumeSource` objects and thus can be used only via PersistentVolumes. For now we do not consider allowing CSI volumes directly from Pods without PersistentVolumeClaim.
238
238
239
239
```GO
240
-
typeCSIVolumeSourcestruct {
240
+
typeCSIPersistentVolumeSourcestruct {
241
241
// Driver is the name of the driver to use for this volume.
Note that both attach and mount secrets are in a dedicated namespace where external AttachController and kubelet has access and they should not be visible to regular users. It is expected that either admin or external provisioner create these secrets when creating corresponding PV.
271
+
272
272
#### Internal Interfaces
273
273
274
274
The in-tree CSI volume plugin will implement the following internal Kubernetes volume interfaces:
@@ -286,6 +286,8 @@ The in-tree volume plugin’s SetUp and TearDown methods will trigger the `NodeP
286
286
287
287
The Kubernetes volume sub-system does not currently support block volumes (only file), so for alpha, the Kubernetes CSI volume plugin will only support file.
288
288
289
+
As part of kubelet work, NodeAuthorizer needs to be updated to allow kubelet accessing MountSecret for internal CSI volume plugin.
290
+
289
291
#### Attaching and Detaching
290
292
291
293
The attach/detach controller,running as part of the kube-controller-manager binary on the master, decides when a CSI volume must be attached or detached from a particular node.
0 commit comments