Skip to content

Commit

Permalink
Update kubedb-kubestash-catalog apis
Browse files Browse the repository at this point in the history
Signed-off-by: hmsayem <[email protected]>
  • Loading branch information
hmsayem committed Jan 23, 2024
1 parent 9690c81 commit 6e2d7a2
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apis/installer/v1alpha1/kubedb_kubestash_catalog_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type KubedbKubestashCatalogSpec struct {
Mysql StashMysqlSpec `json:"mysql"`
Redis StashRedisSpec `json:"redis"`
Postgres StashPostgresSpec `json:"postgres"`
Mariadb StashMariadbSpec `json:"mariadb"`
}

// StashElasticsearchSpec is the schema for Stash Elasticsearch values file
Expand Down Expand Up @@ -136,6 +137,22 @@ type MySQLRestore struct {
Args string `json:"args"`
}

// StashMariadbSpec is the schema for Stash MySQL values file
type StashMariadbSpec struct {
Backup MariaDBBackup `json:"backup"`
Restore MariaDBRestore `json:"restore"`
}

type MariaDBBackup struct {
// +optional
Args string `json:"args"`
}

type MariaDBRestore struct {
// +optional
Args string `json:"args"`
}

// StashRedisSpec is the schema for Stash Redis values file
type StashRedisSpec struct {
Backup RedisBackup `json:"backup"`
Expand Down
51 changes: 51 additions & 0 deletions apis/installer/v1alpha1/zz_generated.deepcopy.go

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

2 changes: 2 additions & 0 deletions charts/kubedb-kubestash-catalog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ The following table lists the configurable parameters of the `kubedb-kubestash-c
| postgres.restore.args | Arguments to pass to `psql` command during restore process | <code>""</code> |
| mysql.backup.args | Arguments to pass to `mysqldump` command during bakcup process | <code>""</code> |
| mysql.restore.args | Arguments to pass to `mysql` command during restore process | <code>""</code> |
| mariadb.backup.args | Arguments to pass to `mariadbdump` command during bakcup process | <code>""</code> |
| mariadb.restore.args | Arguments to pass to `mariadb` command during restore process | <code>""</code> |
| redis.backup.args | Arguments to pass to `redis-dump` command during bakcup process | <code>""</code> |
| redis.restore.args | Arguments to pass to `redis` command during restore process | <code>""</code> |

Expand Down
18 changes: 18 additions & 0 deletions charts/kubedb-kubestash-catalog/values.openapiv3_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@ properties:
required:
- enabled
type: object
mariadb:
description: StashMariadbSpec is the schema for Stash MySQL values file
properties:
backup:
properties:
args:
type: string
type: object
restore:
properties:
args:
type: string
type: object
required:
- backup
- restore
type: object
mongodb:
description: StashMongodbSpec is the schema for Stash MongoDB values file
properties:
Expand Down Expand Up @@ -144,6 +161,7 @@ required:
- elasticsearch
- featureGates
- kubedbmanifest
- mariadb
- mongodb
- mysql
- opensearch
Expand Down
18 changes: 18 additions & 0 deletions charts/kubedb/values.openapiv3_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3064,6 +3064,23 @@ properties:
required:
- enabled
type: object
mariadb:
description: StashMariadbSpec is the schema for Stash MySQL values file
properties:
backup:
properties:
args:
type: string
type: object
restore:
properties:
args:
type: string
type: object
required:
- backup
- restore
type: object
mongodb:
description: StashMongodbSpec is the schema for Stash MongoDB values file
properties:
Expand Down Expand Up @@ -3182,6 +3199,7 @@ properties:
- enabled
- featureGates
- kubedbmanifest
- mariadb
- mongodb
- mysql
- opensearch
Expand Down

0 comments on commit 6e2d7a2

Please sign in to comment.