Skip to content

Commit

Permalink
issue-725: add IncludeSchemas to RestoreSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
shunki-fujita committed Aug 7, 2024
1 parent af19522 commit e879c96
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/v1beta2/mysqlcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,10 @@ type RestoreSpec struct {

// Specifies parameters for restore Pod.
JobConfig `json:"jobConfig"`

// IncludeSchemas is the list of schemas to restore.
// If empty, all schemas are restored.
IncludeSchemas []string `json:"includeSchemas,omitempty"`
}

// MySQLClusterStatus defines the observed state of MySQLCluster
Expand Down
5 changes: 5 additions & 0 deletions api/v1beta2/zz_generated.deepcopy.go

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

5 changes: 5 additions & 0 deletions charts/moco/templates/generated/crds/moco_crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5817,6 +5817,11 @@ spec:
restore:
description: Restore is the specification to perform Point-in-T
properties:
includeSchemas:
description: IncludeSchemas is the list of schemas to restore.
items:
type: string
type: array
jobConfig:
description: Specifies parameters for restore Pod.
properties:
Expand Down
5 changes: 5 additions & 0 deletions config/crd/bases/moco.cybozu.com_mysqlclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4012,6 +4012,11 @@ spec:
restore:
description: Restore is the specification to perform Point-in-T
properties:
includeSchemas:
description: IncludeSchemas is the list of schemas to restore.
items:
type: string
type: array
jobConfig:
description: Specifies parameters for restore Pod.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4012,6 +4012,11 @@ spec:
restore:
description: Restore is the specification to perform Point-in-T
properties:
includeSchemas:
description: IncludeSchemas is the list of schemas to restore.
items:
type: string
type: array
jobConfig:
description: Specifies parameters for restore Pod.
properties:
Expand Down
1 change: 1 addition & 0 deletions docs/crd_mysqlcluster_v1beta2.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ RestoreSpec represents a set of parameters for Point-in-Time Recovery.
| sourceNamespace | SourceNamespace is the namespace of the source `MySQLCluster`. | string | true |
| restorePoint | RestorePoint is the target date and time to restore data. The format is RFC3339. e.g. \"2006-01-02T15:04:05Z\" | [metav1.Time](https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Time) | true |
| jobConfig | Specifies parameters for restore Pod. | [JobConfig](#jobconfig) | true |
| includeSchemas | IncludeSchemas is the list of schemas to restore. If empty, all schemas are restored. | []string | false |

[Back to Custom Resources](#custom-resources)

Expand Down

0 comments on commit e879c96

Please sign in to comment.