Skip to content

Commit

Permalink
Merge pull request #185 from blackpiglet/add_missing_riav2_method
Browse files Browse the repository at this point in the history
Add AreAdditionalItemsReady method for RIA v2.
  • Loading branch information
ywk253100 authored Jun 20, 2023
2 parents d6d822c + 83a51e1 commit aa06f02
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/restore/pvc_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ func (p *PVCRestoreItemAction) Cancel(operationID string, restore *velerov1api.R
return nil
}

func (p *PVCRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error) {
return true, nil
}

func getDataUploadResult(ctx context.Context, restore *velerov1api.Restore, pvc *corev1api.PersistentVolumeClaim,
kubeClient kubernetes.Interface) (*velerov2alpha1.DataUploadResult, error) {
cmList, err := kubeClient.CoreV1().ConfigMaps(restore.Namespace).List(ctx, metav1.ListOptions{
Expand Down
4 changes: 4 additions & 0 deletions internal/restore/volumesnapshot_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,7 @@ func (p *VolumeSnapshotRestoreItemAction) Progress(operationID string, restore *
func (p *VolumeSnapshotRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error {
return nil
}

func (p *VolumeSnapshotRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error) {
return true, nil
}
4 changes: 4 additions & 0 deletions internal/restore/volumesnapshotclass_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,7 @@ func (p *VolumeSnapshotClassRestoreItemAction) Progress(operationID string, rest
func (p *VolumeSnapshotClassRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error {
return nil
}

func (p *VolumeSnapshotClassRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error) {
return true, nil
}
4 changes: 4 additions & 0 deletions internal/restore/volumesnapshotcontent_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,7 @@ func (p *VolumeSnapshotContentRestoreItemAction) Progress(operationID string, re
func (p *VolumeSnapshotContentRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error {
return nil
}

func (p *VolumeSnapshotContentRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error) {
return true, nil
}

0 comments on commit aa06f02

Please sign in to comment.