mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-18 22:14:29 +00:00
add repo maintain result in history
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
@@ -81,7 +81,20 @@ type BackupRepositoryStatus struct {
|
||||
RecentMaintenanceStatus []BackupRepositoryMaintenanceStatus `json:"recentMaintenanceStatus,omitempty"`
|
||||
}
|
||||
|
||||
// BackupRepositoryMaintenanceResult represents the result of a repo maintenance.
|
||||
// +kubebuilder:validation:Enum=Succeeded;Failed
|
||||
type BackupRepositoryMaintenanceResult string
|
||||
|
||||
const (
|
||||
BackupRepositoryMaintenanceSucceeded BackupRepositoryMaintenanceResult = "Succeeded"
|
||||
BackupRepositoryMaintenanceFailed BackupRepositoryMaintenanceResult = "Failed"
|
||||
)
|
||||
|
||||
type BackupRepositoryMaintenanceStatus struct {
|
||||
// Result is the result of the repo maintenance.
|
||||
// +optional
|
||||
Result BackupRepositoryMaintenanceResult `json:"result,omitempty"`
|
||||
|
||||
// StartTimestamp is the start time of the repo maintenance.
|
||||
// +optional
|
||||
// +nullable
|
||||
|
||||
Reference in New Issue
Block a user