Skip to content

Commit 619cf13

Browse files
authored
Update csi-snapshot.md
1 parent 45d084d commit 619cf13

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

contributors/design-proposals/storage/csi-snapshot.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ type VolumeSnapshotStatus struct {
108108
// +optional
109109
CreationTime *metav1.Time `json:"creationTime" protobuf:"bytes,1,opt,name=creationTime"`
110110

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

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

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

211215
```

0 commit comments

Comments
 (0)