@daocloud-proto/mcamel-kafka 0.2.0-676 → 0.2.0-676-gbeff9a4d
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 +40 -0
- package/common.pb.ts +15 -2
- package/kafka.pb.ts +3 -4
- package/package.json +1 -1
- package/template.pb.ts +5 -0
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?:
|
|
140
|
+
operator?: TolerationOperator
|
|
128
141
|
value?: string
|
|
129
|
-
effect?:
|
|
142
|
+
effect?: TaintEffect
|
|
130
143
|
tolerationSeconds?: string
|
|
131
144
|
}
|
|
132
145
|
|
package/kafka.pb.ts
CHANGED
|
@@ -220,8 +220,8 @@ export type CreateKafkaReq = {
|
|
|
220
220
|
managerLbAddress?: string
|
|
221
221
|
accessWhitelist?: CommonCommon.AccessWhitelist
|
|
222
222
|
listeners?: Listener[]
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
tolerations?: CommonCommon.Toleration[]
|
|
224
|
+
zookeeperTolerations?: CommonCommon.Toleration[]
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
export type NodePoolVolume = {
|
|
@@ -238,6 +238,7 @@ export type NodePool = {
|
|
|
238
238
|
memoryLimit?: string
|
|
239
239
|
volumes?: NodePoolVolume[]
|
|
240
240
|
affinity?: CommonCommon.Affinity
|
|
241
|
+
tolerations?: CommonCommon.Toleration[]
|
|
241
242
|
}
|
|
242
243
|
|
|
243
244
|
export type ListenerConfigurationBroker = {
|
|
@@ -403,8 +404,6 @@ export type KafkaClusterItemStatus = {
|
|
|
403
404
|
kafkaPodsAreReadyNum?: number
|
|
404
405
|
zookeeperPodsAreReadyNum?: number
|
|
405
406
|
common?: CommonCommon.CommonItemStatus
|
|
406
|
-
brokerPodsAreReadyNum?: number
|
|
407
|
-
controllerPodsAreReadyNum?: number
|
|
408
407
|
}
|
|
409
408
|
|
|
410
409
|
export type KafkaClusterItemMetadata = {
|
package/package.json
CHANGED
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
|
}
|