mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 04:55:22 +00:00
backup repo crd changes for repo maintenance history
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
@@ -89,7 +89,7 @@ spec:
|
||||
properties:
|
||||
lastMaintenanceTime:
|
||||
description: LastMaintenanceTime is the last time repo maintenance
|
||||
completed.
|
||||
succeeded.
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
@@ -104,9 +104,8 @@ spec:
|
||||
- Ready
|
||||
- NotReady
|
||||
type: string
|
||||
recentMaintenanceStatus:
|
||||
description: RecentMaintenanceStatus is status of the recent repo
|
||||
maintenance.
|
||||
recentMaintenance:
|
||||
description: RecentMaintenance is status of the recent repo maintenance.
|
||||
items:
|
||||
properties:
|
||||
completeTimestamp:
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -71,14 +71,14 @@ type BackupRepositoryStatus struct {
|
||||
// +optional
|
||||
Message string `json:"message,omitempty"`
|
||||
|
||||
// LastMaintenanceTime is the last time repo maintenance completed.
|
||||
// LastMaintenanceTime is the last time repo maintenance succeeded.
|
||||
// +optional
|
||||
// +nullable
|
||||
LastMaintenanceTime *metav1.Time `json:"lastMaintenanceTime,omitempty"`
|
||||
|
||||
// RecentMaintenanceStatus is status of the recent repo maintenance.
|
||||
// RecentMaintenance is status of the recent repo maintenance.
|
||||
// +optional
|
||||
RecentMaintenanceStatus []BackupRepositoryMaintenanceStatus `json:"recentMaintenanceStatus,omitempty"`
|
||||
RecentMaintenance []BackupRepositoryMaintenanceStatus `json:"recentMaintenance,omitempty"`
|
||||
}
|
||||
|
||||
// BackupRepositoryMaintenanceResult represents the result of a repo maintenance.
|
||||
|
||||
@@ -218,8 +218,8 @@ func (in *BackupRepositoryStatus) DeepCopyInto(out *BackupRepositoryStatus) {
|
||||
in, out := &in.LastMaintenanceTime, &out.LastMaintenanceTime
|
||||
*out = (*in).DeepCopy()
|
||||
}
|
||||
if in.RecentMaintenanceStatus != nil {
|
||||
in, out := &in.RecentMaintenanceStatus, &out.RecentMaintenanceStatus
|
||||
if in.RecentMaintenance != nil {
|
||||
in, out := &in.RecentMaintenance, &out.RecentMaintenance
|
||||
*out = make([]BackupRepositoryMaintenanceStatus, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
|
||||
Reference in New Issue
Block a user