diff --git a/internal/volume/volumes_information.go b/internal/volume/volumes_information.go index 39ae654e1..5be05aee2 100644 --- a/internal/volume/volumes_information.go +++ b/internal/volume/volumes_information.go @@ -234,6 +234,9 @@ type RestoreSnapshotDataMovementInfo struct { // Indicates the type of the restore, incremental or full. RestoreType string `json:"restoreType,omitempty"` + + // FallbackFull indicates whether the incremental restore fallbacks to full restore + FallbackFull bool `json:"fallbackFull,omitempty"` } // NativeSnapshotInfo is used for displaying the Velero native snapshot status. @@ -344,6 +347,9 @@ type PodVolumeRestoreInfo struct { // Indicates the type of the restore, incremental or full. RestoreType string `json:"restoreType,omitempty"` + + // FallbackFull indicates whether the incremental restore fallbacks to full restore + FallbackFull bool `json:"fallbackFull,omitempty"` } func newPodVolumeInfoFromPVB(pvb *velerov1api.PodVolumeBackup) *PodVolumeBackupInfo { diff --git a/pkg/apis/velero/v1/pod_volume_restore_type.go b/pkg/apis/velero/v1/pod_volume_restore_type.go index 725630a83..af9b9ecba 100644 --- a/pkg/apis/velero/v1/pod_volume_restore_type.go +++ b/pkg/apis/velero/v1/pod_volume_restore_type.go @@ -124,6 +124,9 @@ type PodVolumeRestoreStatus struct { // Node is name of the node where the pod volume restore is processed. // +optional Node string `json:"node,omitempty"` + + // FallbackFull indicates whether the incremental restore fallbacks to full restore + FallbackFull bool `json:"fallbackFull,omitempty"` } // TODO(2.0) After converting all resources to use the runtime-controller client, the genclient and k8s:deepcopy markers will no longer be needed and should be removed. diff --git a/pkg/apis/velero/v2alpha1/data_download_types.go b/pkg/apis/velero/v2alpha1/data_download_types.go index caaeceba7..d54fdb788 100644 --- a/pkg/apis/velero/v2alpha1/data_download_types.go +++ b/pkg/apis/velero/v2alpha1/data_download_types.go @@ -149,6 +149,9 @@ type DataDownloadStatus struct { // +optional // +nullable AcceptedTimestamp *metav1.Time `json:"acceptedTimestamp,omitempty"` + + // FallbackFull indicates whether the incremental restore fallbacks to full restore + FallbackFull bool `json:"fallbackFull,omitempty"` } // TODO(2.0) After converting all resources to use the runtime-controller client, the genclient and k8s:deepcopy markers will no longer be needed and should be removed.