From b5dff7f72f5d20ab5a311408ee14ff14911cf379 Mon Sep 17 00:00:00 2001 From: xushiwei 00425595 Date: Thu, 6 Sep 2018 09:48:41 +0800 Subject: [PATCH] snapshot api types cleanup --- pkg/apis/volumesnapshot/v1alpha1/types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/apis/volumesnapshot/v1alpha1/types.go b/pkg/apis/volumesnapshot/v1alpha1/types.go index 723aca27..19694cb3 100644 --- a/pkg/apis/volumesnapshot/v1alpha1/types.go +++ b/pkg/apis/volumesnapshot/v1alpha1/types.go @@ -88,7 +88,7 @@ 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"` // When restoring volume from the snapshot, the volume size should be equal to or // larger than the RestoreSize if it is specified. If RestoreSize is set to nil, it means @@ -171,7 +171,7 @@ type VolumeSnapshotContent struct { // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // Spec represents the desired state of the snapshot data + // Spec represents the desired state of the snapshot content Spec VolumeSnapshotContentSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` } @@ -187,7 +187,7 @@ type VolumeSnapshotContentList struct { Items []VolumeSnapshotContent `json:"items" protobuf:"bytes,2,rep,name=items"` } -// VolumeSnapshotContentSpec is the spec of the volume snapshot data +// VolumeSnapshotContentSpec is the spec of the volume snapshot content type VolumeSnapshotContentSpec struct { // Source represents the location and type of the volume snapshot VolumeSnapshotSource `json:",inline" protobuf:"bytes,1,opt,name=volumeSnapshotSource"`