Update inline volume design
This commit is contained in:
		
							parent
							
								
									913632fbb9
								
							
						
					
					
						commit
						9dd8f70066
					
				|  | @ -237,8 +237,7 @@ with the in-tree plugin, the VolumeAttachment object becomes orphaned. | ||||||
| ### In-line Volumes | ### In-line Volumes | ||||||
| 
 | 
 | ||||||
| In-line controller calls are a special case because there is no PV. In this case | In-line controller calls are a special case because there is no PV. In this case | ||||||
| we will forward the in-tree volume source to CSI attach as-is and it will be | we will translate the volume source and copy it to the field | ||||||
| copied to a new field in the VolumeAttachment object |  | ||||||
| VolumeAttachment.Spec.Source.VolumeAttachmentSource.InlineVolumeSource. The | VolumeAttachment.Spec.Source.VolumeAttachmentSource.InlineVolumeSource. The | ||||||
| VolumeAttachment name must be made with the CSI Translated version of the | VolumeAttachment name must be made with the CSI Translated version of the | ||||||
| VolumeSource in order for it to be discoverable by Detach and WaitForAttach | VolumeSource in order for it to be discoverable by Detach and WaitForAttach | ||||||
|  | @ -259,12 +258,12 @@ type VolumeAttachmentSource struct { | ||||||
| 	// +optional | 	// +optional | ||||||
| 	PersistentVolumeName *string `json:"persistentVolumeName,omitempty" protobuf:"bytes,1,opt,name=persistentVolumeName"` | 	PersistentVolumeName *string `json:"persistentVolumeName,omitempty" protobuf:"bytes,1,opt,name=persistentVolumeName"` | ||||||
| 
 | 
 | ||||||
| 	// Allows CSI migration code to copy an inline volume | 	// Translated VolumeSource from a pod to a CSIPersistentVolumeSource | ||||||
| 	// source from a pod to the VolumeAttachment to support shimming of | 	// to support shimming of in-tree inline volumes to a CSI backend. | ||||||
| 	// in-tree inline volumes to a CSI backend. | 	// This field is alpha-level and is only honored by servers that | ||||||
| 	// This field is alpha-level and is only honored by servers that enable the CSIMigration feature. | 	// enable the CSIMigration feature. | ||||||
| 	// +optional | 	// +optional | ||||||
| 	InlineVolumeSource *v1.VolumeSource `json:"inlineVolumeSource,omitempty protobuf:"bytes,2,opt,name=inlineVolumeSource"` | 	InlineCSIVolumeSource *v1.CSIPersistentVolumeSource `json:"inlineCSIVolumeSource,omitempty" protobuf:"bytes,2,opt,name=inlineCSIVolumeSource"` | ||||||
| } | } | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue