mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
fix(api): succussful vs successful
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
This commit is contained in:
parent
32a5539c18
commit
fdeb6ad62f
@ -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
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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
|
||||
|
||||
@ -53,6 +53,7 @@ var _ = Describe("Metrics Collect method", func() {
|
||||
clusterName: {
|
||||
FirstRecoverabilityPoint: &firstRecoverabilityPoint,
|
||||
LastSuccessfulBackupTime: &lastSuccessfulBackupTime,
|
||||
LastSuccussfulBackupTime: &lastSuccessfulBackupTime,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user