Skip to content

Commit

Permalink
Update csi-snapshot.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jingxu97 authored and xing-yang committed Aug 23, 2018
1 parent 6268b50 commit 766ec70
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions contributors/design-proposals/storage/csi-snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ type VolumeSnapshotStatus struct {
// +optional
CreationTime *metav1.Time `json:"creationTime" protobuf:"bytes,1,opt,name=creationTime"`

// The size of the snapshot. When restoring volume from the snapshot, the volume size
// should be equal or larger than its snapshot size.
Size *resource.Quantity `json:"size" protobuf:"bytes,2,opt,name=size"`
// When restoring volume from the snapshot, the volume size should be equal or
// larger than the Restoresize if it is specified. If RestoreSize is set to nil, it means
// that the storage plugin does not have this information avaialble.
// +optional
RestoreSize *resource.Quantity `json:"restoreSize" protobuf:"bytes,2,opt,name=restoreSize"`

// Ready is set to true only if the snapshot is ready to use (e.g., finish uploading if
// there is an uploading phase) and also VolumeSnapshot and its VolumeSnapshotContent
Expand Down Expand Up @@ -203,9 +205,11 @@ type CSIVolumeSnapshotSource struct {
// the current time in nanoseconds since 1970-01-01 00:00:00 UTC.
CreationTime *int64 `json:"creationTime,omitempty" protobuf:"varint,3,opt,name=creationTime"`

// The size of the snapshot. When restoring volume from the snapshot, the volume size
// should be equal or larger than its snapshot size.
Size *resource.Quantity `json:"size" protobuf:"bytes,2,opt,name=size"`
// When restoring volume from the snapshot, the volume size should be equal or
// larger than the Restoresize if it is specified. If RestoreSize is set to nil, it means
// that the storage plugin does not have this information avaialble.
// +optional
RestoreSize *resource.Quantity `json:"restoreSize" protobuf:"bytes,2,opt,name=restoreSize"`
}

```
Expand Down

0 comments on commit 766ec70

Please sign in to comment.