diff options
| author | Jing Xu <jinxu@google.com> | 2018-08-20 16:22:25 -0700 |
|---|---|---|
| committer | Xing Yang <xingyang105@gmail.com> | 2018-08-22 18:06:29 -0700 |
| commit | 766ec7022f3ba2c2d98f470190c4161ba3b93f8e (patch) | |
| tree | 3105897dfd39741b8cc2c81c31785c225b583910 | |
| parent | 6268b50498ea1c716e512e2d011f437ffa12dfe3 (diff) | |
Update csi-snapshot.md
| -rw-r--r-- | contributors/design-proposals/storage/csi-snapshot.md | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/contributors/design-proposals/storage/csi-snapshot.md b/contributors/design-proposals/storage/csi-snapshot.md index 03bed8b0..b0d46036 100644 --- a/contributors/design-proposals/storage/csi-snapshot.md +++ b/contributors/design-proposals/storage/csi-snapshot.md @@ -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 @@ -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"` } ``` |
