@daocloud-proto/mcamel-mysql 0.25.0 → 0.27.0-rc1-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cluster.pb.ts CHANGED
@@ -40,6 +40,12 @@ export enum EventType {
40
40
  Warning = "Warning",
41
41
  }
42
42
 
43
+ export enum GetClusterNodeTaintListRespTaintEffect {
44
+ NoSchedule = "NoSchedule",
45
+ PreferNoSchedule = "PreferNoSchedule",
46
+ NoExecute = "NoExecute",
47
+ }
48
+
43
49
  export enum InstallFileReqGVR {
44
50
  None = "None",
45
51
  CustomResourceDefinition = "CustomResourceDefinition",
@@ -90,6 +96,34 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
90
96
  Install = "Install",
91
97
  }
92
98
 
99
+ export type GetClusterNodeTaintListReq = {
100
+ cluster?: string
101
+ nodeName?: string
102
+ }
103
+
104
+ export type GetClusterNodeTaintListRespTaint = {
105
+ key?: string
106
+ value?: string
107
+ effect?: GetClusterNodeTaintListRespTaintEffect
108
+ nodeName?: string
109
+ }
110
+
111
+ export type GetClusterNodeTaintListResp = {
112
+ items?: GetClusterNodeTaintListRespTaint[]
113
+ }
114
+
115
+ export type GetClusterNodeListReq = {
116
+ cluster?: string
117
+ }
118
+
119
+ export type GetClusterNodeListRespNode = {
120
+ name?: string
121
+ }
122
+
123
+ export type GetClusterNodeListResp = {
124
+ items?: GetClusterNodeListRespNode[]
125
+ }
126
+
93
127
  export type GetClusterReq = {
94
128
  workspaceId?: number
95
129
  name?: string
@@ -512,4 +546,10 @@ export class Cluster {
512
546
  static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
513
547
  return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/mysql/v1alpha3/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
514
548
  }
549
+ static GetClusterNodeTaintList(req: GetClusterNodeTaintListReq, initReq?: fm.InitReq): Promise<GetClusterNodeTaintListResp> {
550
+ return fm.fetchReq<GetClusterNodeTaintListReq, GetClusterNodeTaintListResp>(`/apis/mcamel.io/mysql/v1alpha3/clusters/${req["cluster"]}/nodes/taints?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
551
+ }
552
+ static GetClusterNodeList(req: GetClusterNodeListReq, initReq?: fm.InitReq): Promise<GetClusterNodeListResp> {
553
+ return fm.fetchReq<GetClusterNodeListReq, GetClusterNodeListResp>(`/apis/mcamel.io/mysql/v1alpha3/clusters/${req["cluster"]}/nodes?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
554
+ }
515
555
  }
package/common.pb.ts CHANGED
@@ -4,6 +4,19 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ export enum TolerationOperator {
8
+ TOLERATION_OPERATOR_UNSPECIFIED = "TOLERATION_OPERATOR_UNSPECIFIED",
9
+ Exists = "Exists",
10
+ Equal = "Equal",
11
+ }
12
+
13
+ export enum TaintEffect {
14
+ TAINT_EFFECT_UNSPECIFIED = "TAINT_EFFECT_UNSPECIFIED",
15
+ NoSchedule = "NoSchedule",
16
+ NoExecute = "NoExecute",
17
+ PreferNoSchedule = "PreferNoSchedule",
18
+ }
19
+
7
20
  export enum FilterPodStatus {
8
21
  FILTER_POD_STATUS_UNSPECIFIED = "FILTER_POD_STATUS_UNSPECIFIED",
9
22
  FILTER_POD_STATUS_RUNNING = "FILTER_POD_STATUS_RUNNING",
@@ -124,9 +137,9 @@ export type LabelSelectorRequirement = {
124
137
 
125
138
  export type Toleration = {
126
139
  key?: string
127
- operator?: string
140
+ operator?: TolerationOperator
128
141
  value?: string
129
- effect?: string
142
+ effect?: TaintEffect
130
143
  tolerationSeconds?: string
131
144
  }
132
145
 
package/mysql.pb.ts CHANGED
@@ -649,6 +649,7 @@ export type CreateMysqlReq = {
649
649
  phpAdminLbAddress?: string
650
650
  instanceType?: InstanceType
651
651
  mgrRouterConfig?: MgrRouterConfig
652
+ tolerations?: CommonCommon.Toleration[]
652
653
  }
653
654
 
654
655
  export type MgrRouterConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mysql",
3
- "version":"0.25.0",
3
+ "version":"0.27.0-rc1-1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {