Change ResourceList to int64 in API

This commit is contained in:
Xing Yang
2018-08-16 07:45:26 -07:00
parent 1ee6dd2c21
commit faf16a64c6

View File

@@ -81,9 +81,9 @@ type VolumeSnapshotSpec struct {
// +optional
VolumeSnapshotClassName string `json:"snapshotClassName" protobuf:"bytes,3,opt,name=snapshotClassName"`
// A description of the volume snapshot's resources and size.
// The complete size of the volume snapshot
// +optional
Size core_v1.ResourceList `json:"size,omitempty" protobuf:"bytes,4,rep,name=size,casttype=ResourceList,castkey=ResourceName"`
Size int64 `json:"size,omitempty" protobuf:"varint,4,opt,name=size"`
}
// VolumeSnapshotStatus is the status of the VolumeSnapshot
@@ -234,7 +234,7 @@ type CSIVolumeSnapshotSource struct {
// +optional
CreatedAt int64 `json:"createdAt,omitempty" protobuf:"varint,3,opt,name=createdAt"`
// A description of the volume snapshot's resources and size.
// The complete size of the volume snapshot
// +optional
Size core_v1.ResourceList `json:"size,omitempty" protobuf:"bytes,4,rep,name=size,casttype=ResourceList,castkey=ResourceName"`
Size int64 `json:"size,omitempty" protobuf:"varint,4,opt,name=size"`
}