@daocloud-proto/mcamel-kafka 0.2.0-671 → 0.2.0-673-g2d91e724

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/kafka/v1alpha2/${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/kafka/v1alpha2/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/kafka/v1alpha2/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/kafka.pb.ts CHANGED
@@ -77,6 +77,8 @@ export enum GetKafkaNodeListRespNodeType {
77
77
  Zookeeper = "Zookeeper",
78
78
  Manager = "Manager",
79
79
  Exporter = "Exporter",
80
+ Controller = "Controller",
81
+ Broker = "Broker",
80
82
  }
81
83
 
82
84
  export type GetKafkaUsersReq = {
@@ -218,6 +220,25 @@ export type CreateKafkaReq = {
218
220
  managerLbAddress?: string
219
221
  accessWhitelist?: CommonCommon.AccessWhitelist
220
222
  listeners?: Listener[]
223
+ tolerations?: CommonCommon.Toleration[]
224
+ zookeeperTolerations?: CommonCommon.Toleration[]
225
+ }
226
+
227
+ export type NodePoolVolume = {
228
+ id?: number
229
+ class?: string
230
+ size?: string
231
+ }
232
+
233
+ export type NodePool = {
234
+ replicas?: number
235
+ cpuRequest?: string
236
+ cpuLimit?: string
237
+ memoryRequest?: string
238
+ memoryLimit?: string
239
+ volumes?: NodePoolVolume[]
240
+ affinity?: CommonCommon.Affinity
241
+ tolerations?: CommonCommon.Toleration[]
221
242
  }
222
243
 
223
244
  export type ListenerConfigurationBroker = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-kafka",
3
- "version":"0.2.0-671",
3
+ "version":"0.2.0-673-g2d91e724",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/template.pb.ts CHANGED
@@ -53,6 +53,7 @@ export type GetTemplateConfigVersionsReq = {
53
53
 
54
54
  export type GetTemplateConfigVersionsResp = {
55
55
  versions?: string[]
56
+ templateTypeMap?: {[key: string]: TemplateInstanceTypeList}
56
57
  }
57
58
 
58
59
  export type GetTemplateConfigStringResp = {
@@ -160,6 +161,10 @@ export type GetTemplateInstanceTypeListReq = {
160
161
  workspaceId?: number
161
162
  }
162
163
 
164
+ export type TemplateInstanceTypeList = {
165
+ values?: TemplateInstanceType[]
166
+ }
167
+
163
168
  export type GetTemplateInstanceTypeListResp = {
164
169
  type?: TemplateInstanceType[]
165
170
  }