Skip to content

Commit 631b9dc

Browse files
authored
Merge pull request #20 from wackxu/clean
snapshot api types fix
2 parents 8f65bb7 + b5dff7f commit 631b9dc

File tree

1 file changed

+3
-3
lines changed
  • pkg/apis/volumesnapshot/v1alpha1

1 file changed

+3
-3
lines changed

pkg/apis/volumesnapshot/v1alpha1/types.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ type VolumeSnapshotStatus struct {
8888
// CreationTime is the time the snapshot was successfully created. If it is set,
8989
// it means the snapshot was created; Otherwise the snapshot was not created.
9090
// +optional
91-
CreationTime *metav1.Time `json:"createdAt" protobuf:"bytes,1,opt,name=createdAt"`
91+
CreationTime *metav1.Time `json:"creationTime" protobuf:"bytes,1,opt,name=creationTime"`
9292

9393
// When restoring volume from the snapshot, the volume size should be equal to or
9494
// larger than the RestoreSize if it is specified. If RestoreSize is set to nil, it means
@@ -171,7 +171,7 @@ type VolumeSnapshotContent struct {
171171
// +optional
172172
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
173173

174-
// Spec represents the desired state of the snapshot data
174+
// Spec represents the desired state of the snapshot content
175175
Spec VolumeSnapshotContentSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
176176
}
177177

@@ -187,7 +187,7 @@ type VolumeSnapshotContentList struct {
187187
Items []VolumeSnapshotContent `json:"items" protobuf:"bytes,2,rep,name=items"`
188188
}
189189

190-
// VolumeSnapshotContentSpec is the spec of the volume snapshot data
190+
// VolumeSnapshotContentSpec is the spec of the volume snapshot content
191191
type VolumeSnapshotContentSpec struct {
192192
// Source represents the location and type of the volume snapshot
193193
VolumeSnapshotSource `json:",inline" protobuf:"bytes,1,opt,name=volumeSnapshotSource"`

0 commit comments

Comments
 (0)