Skip to content

Commit fdeb6ad

Browse files
committed
fix(api): succussful vs successful
Signed-off-by: Leonardo Cecchi <[email protected]>
1 parent 32a5539 commit fdeb6ad

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

api/v1/objectstore_types.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,11 @@ type RecoveryWindow struct {
7373
// restored.
7474
FirstRecoverabilityPoint *metav1.Time `json:"firstRecoverabilityPoint,omitempty"`
7575

76+
// Deprecated: typo of lastSuccessfulBackupTime
77+
LastSuccussfulBackupTime *metav1.Time `json:"lastSuccussfulBackupTime,omitempty"`
78+
7679
// The last successful backup time
77-
LastSuccessfulBackupTime *metav1.Time `json:"lastSuccussfulBackupTime,omitempty"`
80+
LastSuccessfulBackupTime *metav1.Time `json:"lastSuccessfulBackupTime,omitempty"`
7881
}
7982

8083
// +kubebuilder:object:root=true

api/v1/zz_generated.deepcopy.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/barmancloud.cnpg.io_objectstores.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,10 +609,14 @@ spec:
609609
restored.
610610
format: date-time
611611
type: string
612-
lastSuccussfulBackupTime:
612+
lastSuccessfulBackupTime:
613613
description: The last successful backup time
614614
format: date-time
615615
type: string
616+
lastSuccussfulBackupTime:
617+
description: 'Deprecated: typo of lastSuccessfulBackupTime'
618+
format: date-time
619+
type: string
616620
type: object
617621
description: ServerRecoveryWindow maps each server to its recovery
618622
window

internal/cnpgi/instance/metrics_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ var _ = Describe("Metrics Collect method", func() {
5353
clusterName: {
5454
FirstRecoverabilityPoint: &firstRecoverabilityPoint,
5555
LastSuccessfulBackupTime: &lastSuccessfulBackupTime,
56+
LastSuccussfulBackupTime: &lastSuccessfulBackupTime,
5657
},
5758
},
5859
},

internal/cnpgi/instance/recovery_window.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func updateRecoveryWindow(
3232
recoveryWindow := barmancloudv1.RecoveryWindow{
3333
FirstRecoverabilityPoint: convertTime(backupList.GetFirstRecoverabilityPoint()),
3434
LastSuccessfulBackupTime: convertTime(backupList.GetLastSuccessfulBackupTime()),
35+
LastSuccussfulBackupTime: convertTime(backupList.GetLastSuccessfulBackupTime()),
3536
}
3637

3738
if objectStore.Status.ServerRecoveryWindow == nil {

0 commit comments

Comments
 (0)