backup repo crd changes for repo maintenance history

Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
Lyndon-Li
2024-12-23 15:20:53 +08:00
parent 3b2c50b459
commit 77f1141ef5
4 changed files with 9 additions and 10 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -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])