Skip to content

Commit

Permalink
Add WAl backup failed and success history limit field
Browse files Browse the repository at this point in the history
Signed-off-by: Anisur Rahman <[email protected]>
  • Loading branch information
anisurrahman75 committed Dec 17, 2024
1 parent 52bb834 commit a30f330
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 0 deletions.
14 changes: 14 additions & 0 deletions apis/archiver/v1alpha1/openapi_generated.go

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

13 changes: 13 additions & 0 deletions apis/archiver/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,21 @@ type ManifestBackupOptions struct {
type WalBackupOptions struct {
// +optional
RuntimeSettings *ofst.RuntimeSettings `json:"runtimeSettings,omitempty"`

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

// SuccessfulWalHistoryLimit defines the number of successful backup WALs that the incremental snapshot will retain for debugging purposes.
// The default value is 5.
// +kubebuilder:default=5
// +optional
SuccessfulWalHistoryLimit int32 `json:"successfulWalHistoryLimit,omitempty"`

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

type Task struct {
Expand Down
8 changes: 8 additions & 0 deletions crds/archiver.kubedb.com_mariadbarchivers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11786,6 +11786,10 @@ spec:
type: object
walBackup:
properties:
FailedWalHistoryLimit:
default: 5
format: int32
type: integer
configSecret:
properties:
envToSecretKey:
Expand Down Expand Up @@ -12938,6 +12942,10 @@ spec:
x-kubernetes-list-type: map
type: object
type: object
successfulWalHistoryLimit:
default: 5
format: int32
type: integer
type: object
required:
- databases
Expand Down
8 changes: 8 additions & 0 deletions crds/archiver.kubedb.com_mongodbarchivers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11786,6 +11786,10 @@ spec:
type: object
walBackup:
properties:
FailedWalHistoryLimit:
default: 5
format: int32
type: integer
configSecret:
properties:
envToSecretKey:
Expand Down Expand Up @@ -12938,6 +12942,10 @@ spec:
x-kubernetes-list-type: map
type: object
type: object
successfulWalHistoryLimit:
default: 5
format: int32
type: integer
type: object
required:
- databases
Expand Down
8 changes: 8 additions & 0 deletions crds/archiver.kubedb.com_mssqlserverarchivers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11786,6 +11786,10 @@ spec:
type: object
walBackup:
properties:
FailedWalHistoryLimit:
default: 5
format: int32
type: integer
configSecret:
properties:
envToSecretKey:
Expand Down Expand Up @@ -12938,6 +12942,10 @@ spec:
x-kubernetes-list-type: map
type: object
type: object
successfulWalHistoryLimit:
default: 5
format: int32
type: integer
type: object
required:
- databases
Expand Down
8 changes: 8 additions & 0 deletions crds/archiver.kubedb.com_mysqlarchivers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11786,6 +11786,10 @@ spec:
type: object
walBackup:
properties:
FailedWalHistoryLimit:
default: 5
format: int32
type: integer
configSecret:
properties:
envToSecretKey:
Expand Down Expand Up @@ -12938,6 +12942,10 @@ spec:
x-kubernetes-list-type: map
type: object
type: object
successfulWalHistoryLimit:
default: 5
format: int32
type: integer
type: object
required:
- databases
Expand Down
8 changes: 8 additions & 0 deletions crds/archiver.kubedb.com_postgresarchivers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11786,6 +11786,10 @@ spec:
type: object
walBackup:
properties:
FailedWalHistoryLimit:
default: 5
format: int32
type: integer
configSecret:
properties:
envToSecretKey:
Expand Down Expand Up @@ -12938,6 +12942,10 @@ spec:
x-kubernetes-list-type: map
type: object
type: object
successfulWalHistoryLimit:
default: 5
format: int32
type: integer
type: object
required:
- databases
Expand Down

0 comments on commit a30f330

Please sign in to comment.