Skip to content

Commit

Permalink
Add available database list in connection (#1371)
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha authored Dec 19, 2024
1 parent e9eda10 commit 61e95e4
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .config/api-rules/violation_exceptions.list
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ API rule violation: list_type_missing,kmodules.xyz/offshoot-api/api/v1,ServiceSp
API rule violation: list_type_missing,kmodules.xyz/offshoot-api/api/v1,ServiceSpec,LoadBalancerSourceRanges
API rule violation: list_type_missing,kmodules.xyz/offshoot-api/api/v1,ServiceSpec,Ports
API rule violation: list_type_missing,kubedb.dev/apimachinery/apis/ui/v1alpha1,DatabaseConnectionSpec,CACert
API rule violation: list_type_missing,kubedb.dev/apimachinery/apis/ui/v1alpha1,DatabaseConnectionSpec,Databases
API rule violation: list_type_missing,kubedb.dev/apimachinery/apis/ui/v1alpha1,DatabaseConnectionSpec,Gateway
API rule violation: list_type_missing,kubedb.dev/apimachinery/apis/ui/v1alpha1,ElasticsearchNodesStatSpec,Roles
API rule violation: list_type_missing,kubedb.dev/apimachinery/apis/ui/v1alpha1,ElasticsearchNodesStatsSpec,Nodes
Expand Down
3 changes: 3 additions & 0 deletions apis/ui/v1alpha1/database_connection_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ type DatabaseConnectionSpec struct {
Gateway []GatewayConnection `json:"gateway,omitempty"`
InCluster InClusterConnection `json:"inCluster,omitempty"`

// Databases already present on the referred database server
Databases []string `json:"databases,omitempty"`

// Parameters: `username = <username>\n
// password = <password>\n
// host = <host>\n
Expand Down
15 changes: 15 additions & 0 deletions apis/ui/v1alpha1/openapi_generated.go

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

5 changes: 5 additions & 0 deletions apis/ui/v1alpha1/zz_generated.deepcopy.go

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

4 changes: 4 additions & 0 deletions crds/ui.kubedb.com_databaseconnections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
additionalProperties:
type: string
type: object
databases:
items:
type: string
type: array
gateway:
items:
properties:
Expand Down

0 comments on commit 61e95e4

Please sign in to comment.