summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJing Xu <jinxu@google.com>2018-08-14 14:12:02 -0700
committerXing Yang <xingyang105@gmail.com>2018-08-22 18:06:29 -0700
commit6268b50498ea1c716e512e2d011f437ffa12dfe3 (patch)
tree29bd37e1162bb7ac19e830de96e3e6ab413ffd5c
parent5fcba270f6f88fc1ddb9e14f15b7f352b40fe142 (diff)
Update csi-snapshot.md
-rw-r--r--contributors/design-proposals/storage/csi-snapshot.md15
1 files changed, 11 insertions, 4 deletions
diff --git a/contributors/design-proposals/storage/csi-snapshot.md b/contributors/design-proposals/storage/csi-snapshot.md
index 8c096067..03bed8b0 100644
--- a/contributors/design-proposals/storage/csi-snapshot.md
+++ b/contributors/design-proposals/storage/csi-snapshot.md
@@ -106,14 +106,18 @@ type VolumeSnapshotStatus struct {
// CreationTime is the time the snapshot was successfully created. If it is set,
// it means the snapshot was created; Otherwise the snapshot was not created.
// +optional
- CreationTime *metav1.Time `json:"createdAt" protobuf:"bytes,1,opt,name=createdAt"`
+ 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"`
+
// 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
// bind correctly with each other. If any of the above condition is not true, Ready is
// set to false
// +optional
- Ready bool `json:"ready" protobuf:"varint,2,opt,name=ready"`
+ Ready bool `json:"ready" protobuf:"varint,3,opt,name=ready"`
// The last error encountered during create snapshot operation, if any.
// This field must only be set by the entity completing the create snapshot
@@ -197,8 +201,11 @@ type CSIVolumeSnapshotSource struct {
// the snapshot is cut. The format of this field should be a Unix nanoseconds
// time encoded as an int64. On Unix, the command `date +%s%N` returns
// the current time in nanoseconds since 1970-01-01 00:00:00 UTC.
- // This field is REQUIRED.
- CreatedAt int64 `json:"createdAt,omitempty" protobuf:"varint,3,opt,name=createdAt"`
+ 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"`
}
```