Skip to content

Commit

Permalink
update maxscale api
Browse files Browse the repository at this point in the history
Signed-off-by: SK Ali Arman <[email protected]>
  • Loading branch information
sheikh-arman committed Jan 25, 2025
1 parent 5ea9fb6 commit fa98cc0
Show file tree
Hide file tree
Showing 4 changed files with 3,266 additions and 2 deletions.
19 changes: 18 additions & 1 deletion apis/kubedb/v1/mariadb_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,23 @@ type MariaDBList struct {

type MariaDBTopology struct {
// If set to -
// "GroupReplication", GroupSpec is required and MariaDB servers will start a replication group
// mode of the topology, possible values MariaDBReplication,GaleraCluster.
// Must be set for topology set up
Mode *MariaDBMode `json:"mode,omitempty"`
// must set for MariaDBReplication mode
// +optional
MaxScale *MaxScaleSpec `json:"maxscale,omitempty"`
}

type MaxScaleSpec struct {
// Number of instances to deploy for a MariaDB database.
Replicas *int32 `json:"replicas,omitempty"`
// PodTemplate is an optional configuration for pods used to expose database
// +optional
PodTemplate ofstv2.PodTemplateSpec `json:"podTemplate,omitempty"`
// Storage spec to specify how storage shall be used.
Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`
// enable/disable MaxscaleUI
// +optional
EnableUI *bool `json:"enableUI,omitempty"`
}
52 changes: 51 additions & 1 deletion apis/kubedb/v1/openapi_generated.go

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

37 changes: 37 additions & 0 deletions apis/kubedb/v1/zz_generated.deepcopy.go

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

Loading

0 comments on commit fa98cc0

Please sign in to comment.