add fallbackFull to DD and PVR

Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
Lyndon-Li
2026-09-10 15:02:52 +08:00
parent 23d4233c82
commit 159e98e906
3 changed files with 12 additions and 0 deletions
+6
View File
@@ -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 {
@@ -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.
@@ -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.