We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ad066d commit dfd9861Copy full SHA for dfd9861
internal/cnpgi/instance/recovery_window.go
@@ -59,7 +59,12 @@ func setLastFailedBackupTime(
59
}
60
recoveryWindow := objectStore.Status.ServerRecoveryWindow[serverName]
61
recoveryWindow.LastFailedBackupTime = ptr.To(metav1.NewTime(lastFailedBackupTime))
62
+
63
+ if objectStore.Status.ServerRecoveryWindow == nil {
64
+ objectStore.Status.ServerRecoveryWindow = make(map[string]barmancloudv1.RecoveryWindow)
65
+ }
66
objectStore.Status.ServerRecoveryWindow[serverName] = recoveryWindow
67
68
return c.Status().Update(ctx, &objectStore)
69
})
70
0 commit comments