Skip to content

Commit

Permalink
PMM-7659 external connection api (#750)
Browse files Browse the repository at this point in the history
* PMM-7659 Ability to decide between External/Internal connection type.

* PMM-7659 rename `external` with `expose`.

* PMM-7659 Better naming.
  • Loading branch information
BupycHuk authored Jun 15, 2021
1 parent 382f67d commit 393fc78
Show file tree
Hide file tree
Showing 10 changed files with 519 additions and 416 deletions.

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

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

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

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

20 changes: 20 additions & 0 deletions api/managementpb/dbaas/json/dbaas.json
Original file line number Diff line number Diff line change
Expand Up @@ -1686,6 +1686,11 @@
"schema": {
"type": "object",
"properties": {
"expose": {
"description": "Make DB cluster accessible outside of K8s cluster.",
"type": "boolean",
"x-order": 3
},
"kubernetes_cluster_name": {
"description": "Kubernetes cluster name.",
"type": "string",
Expand Down Expand Up @@ -2377,6 +2382,11 @@
"description": "Cluster represents PSMDB cluster information.\nTODO Do not use inner messages in all public APIs (for consistency).",
"type": "object",
"properties": {
"exposed": {
"description": "DB cluster accessible outside of K8s cluster.",
"type": "boolean",
"x-order": 4
},
"name": {
"description": "Cluster name.",
"type": "string",
Expand Down Expand Up @@ -2534,6 +2544,11 @@
"schema": {
"type": "object",
"properties": {
"expose": {
"description": "Make DB cluster accessible outside of K8s cluster.",
"type": "boolean",
"x-order": 3
},
"kubernetes_cluster_name": {
"description": "Kubernetes cluster name.",
"type": "string",
Expand Down Expand Up @@ -3408,6 +3423,11 @@
"description": "Cluster represents XtraDB cluster information.\nTODO Do not use inner messages in all public APIs (for consistency).",
"type": "object",
"properties": {
"exposed": {
"description": "DB cluster accessible outside of K8s cluster.",
"type": "boolean",
"x-order": 4
},
"name": {
"description": "Cluster name.",
"type": "string",
Expand Down
396 changes: 209 additions & 187 deletions api/managementpb/dbaas/psmdb_cluster.pb.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions api/managementpb/dbaas/psmdb_cluster.proto
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ message ListPSMDBClustersResponse {
RunningOperation operation = 3;
// Cluster parameters.
PSMDBClusterParams params = 4;
// DB cluster accessible outside of K8s cluster.
bool exposed = 5;
}
// PSMDB clusters information.
repeated Cluster clusters = 1;
Expand Down Expand Up @@ -135,6 +137,8 @@ message CreatePSMDBClusterRequest {
msg_exists: true
}
];
// Make DB cluster accessible outside of K8s cluster.
bool expose = 4;
}

message CreatePSMDBClusterResponse {}
Expand Down
479 changes: 250 additions & 229 deletions api/managementpb/dbaas/xtradb_cluster.pb.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions api/managementpb/dbaas/xtradb_cluster.proto
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ message ListXtraDBClustersResponse {
RunningOperation operation = 3;
// Cluster parameters.
XtraDBClusterParams params = 4;
// DB cluster accessible outside of K8s cluster.
bool exposed = 5;
}
// XtraDB clusters information.
repeated Cluster clusters = 1;
Expand Down Expand Up @@ -175,6 +177,8 @@ message CreateXtraDBClusterRequest {
msg_exists: true
}
];
// Make DB cluster accessible outside of K8s cluster.
bool expose = 4;
}

message CreateXtraDBClusterResponse {}
Expand Down
20 changes: 20 additions & 0 deletions api/swagger/swagger-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -17627,6 +17627,11 @@
}
},
"x-order": 2
},
"expose": {
"description": "Make DB cluster accessible outside of K8s cluster.",
"type": "boolean",
"x-order": 3
}
}
}
Expand Down Expand Up @@ -18351,6 +18356,11 @@
}
},
"x-order": 3
},
"exposed": {
"description": "DB cluster accessible outside of K8s cluster.",
"type": "boolean",
"x-order": 4
}
}
},
Expand Down Expand Up @@ -18543,6 +18553,11 @@
}
},
"x-order": 2
},
"expose": {
"description": "Make DB cluster accessible outside of K8s cluster.",
"type": "boolean",
"x-order": 3
}
}
}
Expand Down Expand Up @@ -19450,6 +19465,11 @@
}
},
"x-order": 3
},
"exposed": {
"description": "DB cluster accessible outside of K8s cluster.",
"type": "boolean",
"x-order": 4
}
}
},
Expand Down

0 comments on commit 393fc78

Please sign in to comment.