Skip to content

Commit

Permalink
Add new dbs to kubedb menu (#424)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored May 8, 2024
1 parent 74ed30e commit af95741
Show file tree
Hide file tree
Showing 6 changed files with 159 additions and 18 deletions.
12 changes: 12 additions & 0 deletions apis/meta/v1alpha1/openapi_generated.go

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

11 changes: 11 additions & 0 deletions apis/meta/v1alpha1/ui_menu_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ type MenuSection struct {
Items []MenuItem `json:"items"`
}

// +kubebuilder:validation:Enum=ALPHA;BETA;GA
type FeatureMode string

const (
FeatureModeAlpha FeatureMode = "ALPHA"
FeatureModeBeta FeatureMode = "BETA"
FeatureModeGA FeatureMode = "GA"
)

type MenuSectionInfo struct {
Name string `json:"name,omitempty"`

Expand Down Expand Up @@ -81,6 +90,8 @@ type MenuItem struct {
// +optional
LayoutName string `json:"layoutName,omitempty"`
// +optional
FeatureMode FeatureMode `json:"featureMode,omitempty"`
// +optional
Icons []helmshared.ImageSpec `json:"icons,omitempty"`
Installer *shared.DeploymentParameters `json:"installer,omitempty"`
// +optional
Expand Down
2 changes: 2 additions & 0 deletions apis/meta/v1alpha1/ui_menuoutline_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ type MenuEntry struct {
// +optional
Required bool `json:"required,omitempty"`
// +optional
FeatureMode FeatureMode `json:"featureMode,omitempty"`
// +optional
Icons []helmshared.ImageSpec `json:"icons,omitempty"`
}

Expand Down
6 changes: 6 additions & 0 deletions crds/meta.k8s.appscode.com_menuoutlines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ spec:
items:
items:
properties:
featureMode:
enum:
- ALPHA
- BETA
- GA
type: string
icons:
items:
description: ImageSpec contains information about an
Expand Down
73 changes: 64 additions & 9 deletions hub/menuoutlines/byte.builders/kubedb-accordion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,54 +14,109 @@ spec:
- src: https://cdn.appscode.com/k8s/icons/menu/datastore.png
type: image/png
items:
- layoutName: kubedb.com-v1alpha2-elasticsearches-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-elasticsearches-kubedb
name: Elasticsearch
required: true
type:
group: kubedb.com
kind: Elasticsearch
- layoutName: kubedb.com-v1alpha2-kafkas-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-kafkas-kubedb
name: Kafka
required: true
type:
group: kubedb.com
kind: Kafka
- layoutName: kubedb.com-v1alpha2-mariadbs-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-mariadbs-kubedb
name: MariaDB
required: true
type:
group: kubedb.com
kind: MariaDB
- layoutName: kubedb.com-v1alpha2-mongodbs-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-mongodbs-kubedb
name: MongoDB
required: true
type:
group: kubedb.com
kind: MongoDB
- layoutName: kubedb.com-v1alpha2-mysqls-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-mysqls-kubedb
name: MySQL
required: true
type:
group: kubedb.com
kind: MySQL
- layoutName: kubedb.com-v1alpha2-postgreses-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-postgreses-kubedb
name: PostgreSQL
required: true
type:
group: kubedb.com
kind: Postgres
- layoutName: kubedb.com-v1alpha2-proxysqls-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-proxysqls-kubedb
name: ProxySQL
required: true
type:
group: kubedb.com
kind: ProxySQL
- layoutName: kubedb.com-v1alpha2-redises-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-redises-kubedb
name: Redis
required: true
type:
group: kubedb.com
kind: Redis
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-druids-kubedb
name: Druid
type:
group: kubedb.com
kind: Druid
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-ferretdbs-kubedb
name: FerretDB
type:
group: kubedb.com
kind: FerretDB
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-mssqlservers-kubedb
name: MSSQLServer
type:
group: kubedb.com
kind: MSSQLServer
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-pgpools-kubedb
name: Pgpool
type:
group: kubedb.com
kind: Pgpool
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-rabbitmqs-kubedb
name: RabbitMQ
type:
group: kubedb.com
kind: RabbitMQ
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-singlestores-kubedb
name: Singlestore
type:
group: kubedb.com
kind: Singlestore
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-solrs-kubedb
name: Solr
type:
group: kubedb.com
kind: Solr
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-zookeepers-kubedb
name: Zookeeper
type:
group: kubedb.com
kind: Zookeeper
name: Datastore
path: /ui.appscode.com/v1alpha1/sections/datastore
- icons:
Expand Down
73 changes: 64 additions & 9 deletions hub/menuoutlines/byte.builders/kubedb-gallery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,54 +14,109 @@ spec:
- src: https://cdn.appscode.com/k8s/icons/menu/datastore.png
type: image/png
items:
- layoutName: kubedb.com-v1alpha2-elasticsearches-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-elasticsearches-kubedb
name: Elasticsearch
required: true
type:
group: kubedb.com
kind: Elasticsearch
- layoutName: kubedb.com-v1alpha2-kafkas-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-kafkas-kubedb
name: Kafka
required: true
type:
group: kubedb.com
kind: Kafka
- layoutName: kubedb.com-v1alpha2-mariadbs-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-mariadbs-kubedb
name: MariaDB
required: true
type:
group: kubedb.com
kind: MariaDB
- layoutName: kubedb.com-v1alpha2-mongodbs-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-mongodbs-kubedb
name: MongoDB
required: true
type:
group: kubedb.com
kind: MongoDB
- layoutName: kubedb.com-v1alpha2-mysqls-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-mysqls-kubedb
name: MySQL
required: true
type:
group: kubedb.com
kind: MySQL
- layoutName: kubedb.com-v1alpha2-postgreses-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-postgreses-kubedb
name: PostgreSQL
required: true
type:
group: kubedb.com
kind: Postgres
- layoutName: kubedb.com-v1alpha2-proxysqles-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-proxysqles-kubedb
name: ProxySQL
required: true
type:
group: kubedb.com
kind: ProxySQL
- layoutName: kubedb.com-v1alpha2-redises-kubedb
- featureMode: GA
layoutName: kubedb.com-v1alpha2-redises-kubedb
name: Redis
required: true
type:
group: kubedb.com
kind: Redis
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-druids-kubedb
name: Druid
type:
group: kubedb.com
kind: Druid
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-ferretdbs-kubedb
name: FerretDB
type:
group: kubedb.com
kind: FerretDB
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-mssqlservers-kubedb
name: MSSQLServer
type:
group: kubedb.com
kind: MSSQLServer
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-pgpools-kubedb
name: Pgpool
type:
group: kubedb.com
kind: Pgpool
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-rabbitmqs-kubedb
name: RabbitMQ
type:
group: kubedb.com
kind: RabbitMQ
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-singlestores-kubedb
name: Singlestore
type:
group: kubedb.com
kind: Singlestore
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-solrs-kubedb
name: Solr
type:
group: kubedb.com
kind: Solr
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-zookeepers-kubedb
name: Zookeeper
type:
group: kubedb.com
kind: Zookeeper
name: Datastore
path: /ui.appscode.com/v1alpha1/sections/datastore
- icons:
Expand Down

0 comments on commit af95741

Please sign in to comment.