From 6e2d7a2fc97748324a14c6849247ca03e5cc1d69 Mon Sep 17 00:00:00 2001 From: hmsayem Date: Tue, 23 Jan 2024 12:52:58 +0600 Subject: [PATCH] Update kubedb-kubestash-catalog apis Signed-off-by: hmsayem --- .../kubedb_kubestash_catalog_types.go | 17 +++++++ .../v1alpha1/zz_generated.deepcopy.go | 51 +++++++++++++++++++ charts/kubedb-kubestash-catalog/README.md | 2 + .../values.openapiv3_schema.yaml | 18 +++++++ charts/kubedb/values.openapiv3_schema.yaml | 18 +++++++ 5 files changed, 106 insertions(+) diff --git a/apis/installer/v1alpha1/kubedb_kubestash_catalog_types.go b/apis/installer/v1alpha1/kubedb_kubestash_catalog_types.go index 2fe203222..2fd03d664 100644 --- a/apis/installer/v1alpha1/kubedb_kubestash_catalog_types.go +++ b/apis/installer/v1alpha1/kubedb_kubestash_catalog_types.go @@ -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 @@ -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"` diff --git a/apis/installer/v1alpha1/zz_generated.deepcopy.go b/apis/installer/v1alpha1/zz_generated.deepcopy.go index a05fa494f..6ab648e88 100644 --- a/apis/installer/v1alpha1/zz_generated.deepcopy.go +++ b/apis/installer/v1alpha1/zz_generated.deepcopy.go @@ -938,6 +938,7 @@ func (in *KubedbKubestashCatalogSpec) DeepCopyInto(out *KubedbKubestashCatalogSp out.Mysql = in.Mysql out.Redis = in.Redis out.Postgres = in.Postgres + out.Mariadb = in.Mariadb return } @@ -2129,6 +2130,38 @@ func (in *KubedbWebhookServerValues) DeepCopy() *KubedbWebhookServerValues { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MariaDBBackup) DeepCopyInto(out *MariaDBBackup) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBBackup. +func (in *MariaDBBackup) DeepCopy() *MariaDBBackup { + if in == nil { + return nil + } + out := new(MariaDBBackup) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MariaDBRestore) DeepCopyInto(out *MariaDBRestore) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBRestore. +func (in *MariaDBRestore) DeepCopy() *MariaDBRestore { + if in == nil { + return nil + } + out := new(MariaDBRestore) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MongoDBBackup) DeepCopyInto(out *MongoDBBackup) { *out = *in @@ -2869,6 +2902,24 @@ func (in *StashKubedbmanifestSpec) DeepCopy() *StashKubedbmanifestSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StashMariadbSpec) DeepCopyInto(out *StashMariadbSpec) { + *out = *in + out.Backup = in.Backup + out.Restore = in.Restore + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StashMariadbSpec. +func (in *StashMariadbSpec) DeepCopy() *StashMariadbSpec { + if in == nil { + return nil + } + out := new(StashMariadbSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *StashMongodbSpec) DeepCopyInto(out *StashMongodbSpec) { *out = *in diff --git a/charts/kubedb-kubestash-catalog/README.md b/charts/kubedb-kubestash-catalog/README.md index 6d75ec429..cc7d814da 100644 --- a/charts/kubedb-kubestash-catalog/README.md +++ b/charts/kubedb-kubestash-catalog/README.md @@ -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 | "" | | mysql.backup.args | Arguments to pass to `mysqldump` command during bakcup process | "" | | mysql.restore.args | Arguments to pass to `mysql` command during restore process | "" | +| mariadb.backup.args | Arguments to pass to `mariadbdump` command during bakcup process | "" | +| mariadb.restore.args | Arguments to pass to `mariadb` command during restore process | "" | | redis.backup.args | Arguments to pass to `redis-dump` command during bakcup process | "" | | redis.restore.args | Arguments to pass to `redis` command during restore process | "" | diff --git a/charts/kubedb-kubestash-catalog/values.openapiv3_schema.yaml b/charts/kubedb-kubestash-catalog/values.openapiv3_schema.yaml index cb1c08d0b..fa40f0693 100644 --- a/charts/kubedb-kubestash-catalog/values.openapiv3_schema.yaml +++ b/charts/kubedb-kubestash-catalog/values.openapiv3_schema.yaml @@ -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: @@ -144,6 +161,7 @@ required: - elasticsearch - featureGates - kubedbmanifest +- mariadb - mongodb - mysql - opensearch diff --git a/charts/kubedb/values.openapiv3_schema.yaml b/charts/kubedb/values.openapiv3_schema.yaml index 02ffb5063..48fa3d9d0 100644 --- a/charts/kubedb/values.openapiv3_schema.yaml +++ b/charts/kubedb/values.openapiv3_schema.yaml @@ -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: @@ -3182,6 +3199,7 @@ properties: - enabled - featureGates - kubedbmanifest + - mariadb - mongodb - mysql - opensearch