Commit 46fdfeb4 authored by Xing Yang's avatar Xing Yang

Modify comments for DataSource

parent 5a6c5b07
...@@ -415,7 +415,10 @@ type PersistentVolumeClaimSpec struct { ...@@ -415,7 +415,10 @@ type PersistentVolumeClaimSpec struct {
VolumeMode *PersistentVolumeMode VolumeMode *PersistentVolumeMode
// If specified, volume will be prepopulated with data from the specified data source. // If specified, volume will be prepopulated with data from the specified data source.
// This depends on the provisioner for this volume being able to use the specified source. // This depends on the provisioner for this volume being able to use the specified source.
// If the provisioner does not support it, it will fail to provision the volume. // If the provisioner does not support it, it will create an empty volume.
// It requires the VolumeSnapshotDataSource alpha feature gate to be enabled and
// currently VolumeSnapshot is the only supported data source.
// In the future, we will allow more data source types when new feature is ready.
// +optional // +optional
DataSource *TypedLocalObjectReference DataSource *TypedLocalObjectReference
} }
......
...@@ -458,9 +458,12 @@ type PersistentVolumeClaimSpec struct { ...@@ -458,9 +458,12 @@ type PersistentVolumeClaimSpec struct {
// This is an alpha feature and may change in the future. // This is an alpha feature and may change in the future.
// +optional // +optional
VolumeMode *PersistentVolumeMode `json:"volumeMode,omitempty" protobuf:"bytes,6,opt,name=volumeMode,casttype=PersistentVolumeMode"` VolumeMode *PersistentVolumeMode `json:"volumeMode,omitempty" protobuf:"bytes,6,opt,name=volumeMode,casttype=PersistentVolumeMode"`
// If specified, volume will be prepopulated with data from the specified data source. // If specified, volume will be prepopulated with data from the specified data source.
// This depends on the provisioner for this volume being able to use the specified source. // This depends on the provisioner for this volume being able to use the specified source.
// If the provisioner does not support it, it will fail to provision the volume. // If the provisioner does not support it, it will create an empty volume.
// It requires the VolumeSnapshotDataSource alpha feature gate to be enabled and
// currently VolumeSnapshot is the only supported data source.
// In the future, we will allow more data source types when new feature is ready.
// +optional // +optional
DataSource *TypedLocalObjectReference `json:"dataSource" protobuf:"bytes,7,opt,name=dataSource"` DataSource *TypedLocalObjectReference `json:"dataSource" protobuf:"bytes,7,opt,name=dataSource"`
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment