Skip to content

Commit

Permalink
Add WAl backup failed and success history limit field (#1368)
Browse files Browse the repository at this point in the history
Signed-off-by: Anisur Rahman <[email protected]>
  • Loading branch information
anisurrahman75 authored Dec 18, 2024
1 parent d35054f commit e677abc
Show file tree
Hide file tree
Showing 13 changed files with 28,719 additions and 28,655 deletions.
4 changes: 2 additions & 2 deletions apis/archiver/v1alpha1/mariadbarchiver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ type MariaDBArchiverSpec struct {
// FullBackup defines the session configuration for the full backup
// +optional
FullBackup *FullBackupOptions `json:"fullBackup"`
// WalBackup defines the sidekick configuration for the wal backup
// LogBackup defines the sidekick configuration for the log backup
// +optional
WalBackup *WalBackupOptions `json:"walBackup"`
LogBackup *LogBackupOptions `json:"logBackup"`
// ManifestBackup defines the session configuration for the manifest backup
// This options will eventually go to the manifest-backup job's yaml
// +optional
Expand Down
4 changes: 2 additions & 2 deletions apis/archiver/v1alpha1/mongodbarchiver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ type MongoDBArchiverSpec struct {
// This options will eventually go to the full-backup job's yaml
// +optional
FullBackup *FullBackupOptions `json:"fullBackup"`
// WalBackup defines the config of the WalBackup
// LogBackup defines the sidekick configuration for the log backup
// +optional
WalBackup *WalBackupOptions `json:"walBackup"`
LogBackup *LogBackupOptions `json:"logBackup"`
// ManifestBackup defines the sessionConfig of the manifestBackup
// This options will eventually go to the manifest-backup job's yaml
// +optional
Expand Down
5 changes: 2 additions & 3 deletions apis/archiver/v1alpha1/mssqlserverarchiver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ type MSSQLServerArchiverSpec struct {
// This options will eventually go to the full-backup job's yaml
// +optional
FullBackup *FullBackupOptions `json:"fullBackup"`
// WalBackup defines the sessionConfig of the walBackup
// This options will eventually go to the sidekick specification
// LogBackup defines the sidekick configuration for the log backup
// +optional
WalBackup *WalBackupOptions `json:"walBackup"`
LogBackup *LogBackupOptions `json:"logBackup"`
// ManifestBackup defines the sessionConfig of the manifestBackup
// This options will eventually go to the manifest-backup job's yaml
// +optional
Expand Down
5 changes: 2 additions & 3 deletions apis/archiver/v1alpha1/mysqlarchiver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ type MySQLArchiverSpec struct {
// This options will eventually go to the full-backup job's yaml
// +optional
FullBackup *FullBackupOptions `json:"fullBackup"`
// WalBackup defines the sessionConfig of the walBackup
// This options will eventually go to the sidekick specification
// LogBackup defines the sidekick configuration for the log backup
// +optional
WalBackup *WalBackupOptions `json:"walBackup"`
LogBackup *LogBackupOptions `json:"logBackup"`
// ManifestBackup defines the sessionConfig of the manifestBackup
// This options will eventually go to the manifest-backup job's yaml
// +optional
Expand Down
104 changes: 59 additions & 45 deletions apis/archiver/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions apis/archiver/v1alpha1/postgresarchiver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ type PostgresArchiverSpec struct {
// This options will eventually go to the full-backup job's yaml
// +optional
FullBackup *FullBackupOptions `json:"fullBackup"`
// WalBackup defines the sessionConfig of the walBackup
// This options will eventually go to the sidekick specification
// LogBackup defines the sidekick configuration for the log backup
// +optional
WalBackup *WalBackupOptions `json:"walBackup"`
LogBackup *LogBackupOptions `json:"logBackup"`
// ManifestBackup defines the sessionConfig of the manifestBackup
// This options will eventually go to the manifest-backup job's yaml
// +optional
Expand Down
15 changes: 14 additions & 1 deletion apis/archiver/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,24 @@ type ManifestBackupOptions struct {
SessionHistoryLimit int32 `json:"sessionHistoryLimit,omitempty"`
}

type WalBackupOptions struct {
type LogBackupOptions struct {
// +optional
RuntimeSettings *ofst.RuntimeSettings `json:"runtimeSettings,omitempty"`

// +optional
ConfigSecret *GenericSecretReference `json:"configSecret,omitempty"`

// SuccessfulLogHistoryLimit defines the number of successful Logs backup status that the incremental snapshot will retain
// The default value is 5.
// +kubebuilder:default=5
// +optional
SuccessfulLogHistoryLimit int32 `json:"successfulLogHistoryLimit,omitempty"`

// FailedLogHistoryLimit defines the number of failed Logs backup that the incremental snapshot will retain for debugging purposes.
// The default value is 5.
// +kubebuilder:default=5
// +optional
FailedLogHistoryLimit int32 `json:"failedLogHistoryLimit,omitempty"`
}

type Task struct {
Expand Down
Loading

0 comments on commit e677abc

Please sign in to comment.