fix(api): succussful vs successful

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
This commit is contained in:
Leonardo Cecchi 2025-08-11 17:28:08 +02:00
parent 32a5539c18
commit fdeb6ad62f
5 changed files with 15 additions and 2 deletions

View File

@ -73,8 +73,11 @@ type RecoveryWindow struct {
// restored.
FirstRecoverabilityPoint *metav1.Time `json:"firstRecoverabilityPoint,omitempty"`
// Deprecated: typo of lastSuccessfulBackupTime
LastSuccussfulBackupTime *metav1.Time `json:"lastSuccussfulBackupTime,omitempty"`
// The last successful backup time
LastSuccessfulBackupTime *metav1.Time `json:"lastSuccussfulBackupTime,omitempty"`
LastSuccessfulBackupTime *metav1.Time `json:"lastSuccessfulBackupTime,omitempty"`
}
// +kubebuilder:object:root=true

View File

@ -153,6 +153,10 @@ func (in *RecoveryWindow) DeepCopyInto(out *RecoveryWindow) {
in, out := &in.FirstRecoverabilityPoint, &out.FirstRecoverabilityPoint
*out = (*in).DeepCopy()
}
if in.LastSuccussfulBackupTime != nil {
in, out := &in.LastSuccussfulBackupTime, &out.LastSuccussfulBackupTime
*out = (*in).DeepCopy()
}
if in.LastSuccessfulBackupTime != nil {
in, out := &in.LastSuccessfulBackupTime, &out.LastSuccessfulBackupTime
*out = (*in).DeepCopy()

View File

@ -609,10 +609,14 @@ spec:
restored.
format: date-time
type: string
lastSuccussfulBackupTime:
lastSuccessfulBackupTime:
description: The last successful backup time
format: date-time
type: string
lastSuccussfulBackupTime:
description: 'Deprecated: typo of lastSuccessfulBackupTime'
format: date-time
type: string
type: object
description: ServerRecoveryWindow maps each server to its recovery
window

View File

@ -53,6 +53,7 @@ var _ = Describe("Metrics Collect method", func() {
clusterName: {
FirstRecoverabilityPoint: &firstRecoverabilityPoint,
LastSuccessfulBackupTime: &lastSuccessfulBackupTime,
LastSuccussfulBackupTime: &lastSuccessfulBackupTime,
},
},
},

View File

@ -32,6 +32,7 @@ func updateRecoveryWindow(
recoveryWindow := barmancloudv1.RecoveryWindow{
FirstRecoverabilityPoint: convertTime(backupList.GetFirstRecoverabilityPoint()),
LastSuccessfulBackupTime: convertTime(backupList.GetLastSuccessfulBackupTime()),
LastSuccussfulBackupTime: convertTime(backupList.GetLastSuccessfulBackupTime()),
}
if objectStore.Status.ServerRecoveryWindow == nil {