-
Notifications
You must be signed in to change notification settings - Fork 387
API change to improve VolumeGroupSnapshot restore #1068
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
76c098a
7c8516f
519eacf
05d7861
d273061
3cec46d
b5ab14a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,11 +103,20 @@ type VolumeGroupSnapshotStatus struct { | |
// +optional | ||
Error *snapshotv1.VolumeSnapshotError `json:"error,omitempty" protobuf:"bytes,4,opt,name=error,casttype=VolumeSnapshotError"` | ||
|
||
// VolumeSnapshotRefList is the list of volume snapshot references for this | ||
// group snapshot. | ||
// VolumeSnapshotRefList is the list of PVC and VolumeSnapshot pair that | ||
// is part of this group snapshot. | ||
// The maximum number of allowed snapshots in the group is 100. | ||
// +optional | ||
VolumeSnapshotRefList []core_v1.ObjectReference `json:"volumeSnapshotRefList,omitempty" protobuf:"bytes,5,opt,name=volumeSnapshotRefList"` | ||
PVCVolumeSnapshotRefList []PVCVolumeSnapshotPair `json:"pvcVolumeSnapshotRefList,omitempty" protobuf:"bytes,6,opt,name=pvcVolumeSnapshotRefList"` | ||
} | ||
|
||
// PVCVolumeSnapshotPair defines a pair of a PVC reference and a Volume Snapshot | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Volume Snapshot reference |
||
type PVCVolumeSnapshotPair struct { | ||
// PersistentVolumeClaimRef is a reference to the PVC this pair is referring to | ||
PersistentVolumeClaimRef core_v1.ObjectReference `json:"persistentVolumeClaimRef,omitempty" protobuf:"bytes,1,opt,name=persistentVolumeClaimRef"` | ||
|
||
// VolumeSnapshotRef is a reference to the VolumeSnapshot this pair is referring to | ||
VolumeSnapshotRef core_v1.ObjectReference `json:"volumeSnapshotRef,omitempty" protobuf:"bytes,1,opt,name=volumeSnapshotRef"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2 |
||
} | ||
|
||
//+genclient | ||
|
@@ -337,11 +346,21 @@ type VolumeGroupSnapshotContentStatus struct { | |
// +optional | ||
Error *snapshotv1.VolumeSnapshotError `json:"error,omitempty" protobuf:"bytes,4,opt,name=error,casttype=VolumeSnapshotError"` | ||
|
||
// VolumeSnapshotContentRefList is the list of volume snapshot content references | ||
// for this group snapshot. | ||
// PVVolumeSnapshotContentRefList is the list of pairs of PV and | ||
// VolumeSnapshotCOntent for this group snapshot | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PVVolumeSnapshotContentRefList -> PVVolumeSnapshotContentList |
||
// The maximum number of allowed snapshots in the group is 100. | ||
// +optional | ||
VolumeSnapshotContentRefList []core_v1.ObjectReference `json:"volumeSnapshotContentRefList,omitempty" protobuf:"bytes,5,opt,name=volumeSnapshotContentRefList"` | ||
PVVolumeSnapshotContentRefList []PVVolumeSnapshotContentPair `json:"pvVolumeSnapshotContentRefList,omitempty" protobuf:"bytes,6,opt,name=pvVolumeSnapshotContentRefList"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PVVolumeSnapshotContentRefList -> PVVolumeSnapshotContentList |
||
} | ||
|
||
// PVVolumeSnapshotContentPair represent a pair of PV names and | ||
// VolumeSnapshotContent names | ||
type PVVolumeSnapshotContentPair struct { | ||
// PersistentVolumeName is the name of the persistent volume | ||
PersistentVolumeName string `json:"persistentVolumeName,omitempty" protobuf:"bytes,1,opt,name=persistentVolumeName"` | ||
|
||
// VolumeSnapshotContentName is the name of the volume snapshot content resource | ||
VolumeSnapshotContentName string `json:"volumeSnapshotContentName,omitempty" protobuf:"bytes,1,opt,name=volumeSnapshotContentName"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2 |
||
} | ||
|
||
// VolumeGroupSnapshotContentSource represents the CSI source of a group snapshot. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should still be 5, not 6.