@daocloud-proto/mcamel-minio 0.2.0-34 → 0.2.0-341
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/cloudshell.pb.ts +7 -8
- package/cluster.pb.ts +213 -0
- package/common.pb.ts +79 -0
- package/insight.pb.ts +8 -12
- package/minio.pb.ts +10 -8
- package/package.json +1 -1
package/cloudshell.pb.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
|
|
8
|
+
import * as CommonCommon from "./common.pb"
|
|
8
9
|
import * as fm from "./fetch.pb"
|
|
9
10
|
|
|
10
11
|
export enum CreateCloudShellRequestType {
|
|
@@ -12,13 +13,8 @@ export enum CreateCloudShellRequestType {
|
|
|
12
13
|
bash = "bash",
|
|
13
14
|
exec = "exec",
|
|
14
15
|
logs = "logs",
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export type OwnerReference = {
|
|
18
|
-
uid?: string
|
|
19
|
-
controller?: boolean
|
|
20
|
-
name?: string
|
|
21
|
-
kind?: string
|
|
16
|
+
upload = "upload",
|
|
17
|
+
download = "download",
|
|
22
18
|
}
|
|
23
19
|
|
|
24
20
|
export type ObjectMeta = {
|
|
@@ -30,7 +26,7 @@ export type ObjectMeta = {
|
|
|
30
26
|
deletionTimestamp?: string
|
|
31
27
|
labels?: {[key: string]: string}
|
|
32
28
|
annotations?: {[key: string]: string}
|
|
33
|
-
ownerReferences?: OwnerReference[]
|
|
29
|
+
ownerReferences?: CommonCommon.OwnerReference[]
|
|
34
30
|
cluster?: string
|
|
35
31
|
workspaceAlias?: string
|
|
36
32
|
}
|
|
@@ -59,6 +55,9 @@ export type CreateCloudShellRequest = {
|
|
|
59
55
|
cluster?: string
|
|
60
56
|
namespace?: string
|
|
61
57
|
podName?: string
|
|
58
|
+
filePath?: string
|
|
59
|
+
container?: string
|
|
60
|
+
logCount?: number
|
|
62
61
|
data?: CloudShell
|
|
63
62
|
}
|
|
64
63
|
|
package/cluster.pb.ts
CHANGED
|
@@ -7,12 +7,41 @@
|
|
|
7
7
|
import * as CommonCommon from "./common.pb"
|
|
8
8
|
import * as fm from "./fetch.pb"
|
|
9
9
|
|
|
10
|
+
export enum PermissionsType {
|
|
11
|
+
None = "None",
|
|
12
|
+
GetInstance = "GetInstance",
|
|
13
|
+
CreateInstance = "CreateInstance",
|
|
14
|
+
UpdateInstance = "UpdateInstance",
|
|
15
|
+
DeleteInstance = "DeleteInstance",
|
|
16
|
+
GetMetric = "GetMetric",
|
|
17
|
+
GetInstanceLog = "GetInstanceLog",
|
|
18
|
+
GetConfig = "GetConfig",
|
|
19
|
+
UpdateConfig = "UpdateConfig",
|
|
20
|
+
GetBackup = "GetBackup",
|
|
21
|
+
CreateBackup = "CreateBackup",
|
|
22
|
+
UpdateBackup = "UpdateBackup",
|
|
23
|
+
DeleteBackup = "DeleteBackup",
|
|
24
|
+
GetBackupConf = "GetBackupConf",
|
|
25
|
+
CreateBackupConf = "CreateBackupConf",
|
|
26
|
+
UpdateBackupConf = "UpdateBackupConf",
|
|
27
|
+
DeleteBackupConf = "DeleteBackupConf",
|
|
28
|
+
GetTemplate = "GetTemplate",
|
|
29
|
+
CreateTemplate = "CreateTemplate",
|
|
30
|
+
UpdateTemplate = "UpdateTemplate",
|
|
31
|
+
DeleteTemplate = "DeleteTemplate",
|
|
32
|
+
}
|
|
33
|
+
|
|
10
34
|
export enum EventType {
|
|
11
35
|
EVENT_TYPE_UNSPECIFIED = "EVENT_TYPE_UNSPECIFIED",
|
|
12
36
|
Normal = "Normal",
|
|
13
37
|
Warning = "Warning",
|
|
14
38
|
}
|
|
15
39
|
|
|
40
|
+
export enum GetAllEventListReqSortDir {
|
|
41
|
+
ASC = "ASC",
|
|
42
|
+
DESC = "DESC",
|
|
43
|
+
}
|
|
44
|
+
|
|
16
45
|
export enum GetEventListReqKind {
|
|
17
46
|
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
18
47
|
Pod = "Pod",
|
|
@@ -23,11 +52,125 @@ export enum GetWorkspaceListReqSortDir {
|
|
|
23
52
|
DESC = "DESC",
|
|
24
53
|
}
|
|
25
54
|
|
|
55
|
+
export enum ClusterItemNetworkMode {
|
|
56
|
+
Unknown = "Unknown",
|
|
57
|
+
Flannel = "Flannel",
|
|
58
|
+
Calico = "Calico",
|
|
59
|
+
}
|
|
60
|
+
|
|
26
61
|
export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
27
62
|
NotInstall = "NotInstall",
|
|
28
63
|
Install = "Install",
|
|
29
64
|
}
|
|
30
65
|
|
|
66
|
+
export type RestartInstanceReq = {
|
|
67
|
+
workspaceId?: number
|
|
68
|
+
cluster?: string
|
|
69
|
+
namespace?: string
|
|
70
|
+
name?: string
|
|
71
|
+
extra?: string
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type RestartInstanceResp = {
|
|
75
|
+
message?: string
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type GetPermissionsListReq = {
|
|
79
|
+
workspaceId?: number
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type GetPermissionsListRespPermissions = {
|
|
83
|
+
getInstance?: boolean
|
|
84
|
+
createInstance?: boolean
|
|
85
|
+
updateInstance?: boolean
|
|
86
|
+
deleteInstance?: boolean
|
|
87
|
+
getMetric?: boolean
|
|
88
|
+
getInstanceLog?: boolean
|
|
89
|
+
getConfig?: boolean
|
|
90
|
+
updateConfig?: boolean
|
|
91
|
+
getBackup?: boolean
|
|
92
|
+
createBackup?: boolean
|
|
93
|
+
updateBackup?: boolean
|
|
94
|
+
deleteBackup?: boolean
|
|
95
|
+
getBackupConf?: boolean
|
|
96
|
+
createBackupConf?: boolean
|
|
97
|
+
updateBackupConf?: boolean
|
|
98
|
+
deleteBackupConf?: boolean
|
|
99
|
+
getTemplate?: boolean
|
|
100
|
+
createTemplate?: boolean
|
|
101
|
+
updateTemplate?: boolean
|
|
102
|
+
deleteTemplate?: boolean
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type GetPermissionsListResp = {
|
|
106
|
+
permissionsBool?: GetPermissionsListRespPermissions
|
|
107
|
+
permissions?: PermissionsType[]
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type GetAllEventKindsListResp = {
|
|
111
|
+
data?: string[]
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type GetAllEventKindsListReq = {
|
|
115
|
+
cluster?: string
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export type GetAllEventListReq = {
|
|
119
|
+
page?: number
|
|
120
|
+
pageSize?: number
|
|
121
|
+
sortDir?: GetAllEventListReqSortDir
|
|
122
|
+
sortBy?: string
|
|
123
|
+
searchKey?: string
|
|
124
|
+
cluster?: string
|
|
125
|
+
namespace?: string
|
|
126
|
+
name?: string
|
|
127
|
+
eventType?: EventType
|
|
128
|
+
kindName?: string
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type GetAllEventListRespItemsSource = {
|
|
132
|
+
component?: string
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type GetAllEventListRespItemsMetadata = {
|
|
136
|
+
uid?: string
|
|
137
|
+
name?: string
|
|
138
|
+
namespace?: string
|
|
139
|
+
annotations?: {[key: string]: string}
|
|
140
|
+
resourceVersion?: string
|
|
141
|
+
creationTimestamp?: string
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type GetAllEventListRespItemsInvolvedObject = {
|
|
145
|
+
uid?: string
|
|
146
|
+
kind?: string
|
|
147
|
+
name?: string
|
|
148
|
+
namespace?: string
|
|
149
|
+
apiVersion?: string
|
|
150
|
+
resourceVersion?: string
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type GetAllEventListRespItems = {
|
|
154
|
+
kind?: string
|
|
155
|
+
type?: string
|
|
156
|
+
count?: number
|
|
157
|
+
reason?: string
|
|
158
|
+
source?: GetAllEventListRespItemsSource
|
|
159
|
+
message?: string
|
|
160
|
+
metadata?: GetAllEventListRespItemsMetadata
|
|
161
|
+
apiVersion?: string
|
|
162
|
+
lastTimestamp?: string
|
|
163
|
+
firstTimestamp?: string
|
|
164
|
+
involvedObject?: GetAllEventListRespItemsInvolvedObject
|
|
165
|
+
reportingInstance?: string
|
|
166
|
+
reportingComponent?: string
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type GetAllEventListResp = {
|
|
170
|
+
items?: GetAllEventListRespItems[]
|
|
171
|
+
pagination?: CommonCommon.Pagination
|
|
172
|
+
}
|
|
173
|
+
|
|
31
174
|
export type GetClusterNodeLabelListReq = {
|
|
32
175
|
cluster?: string
|
|
33
176
|
}
|
|
@@ -42,6 +185,24 @@ export type GetClusterNodeLabelListResp = {
|
|
|
42
185
|
pagination?: CommonCommon.Pagination
|
|
43
186
|
}
|
|
44
187
|
|
|
188
|
+
export type GetClusterPodLabelListReq = {
|
|
189
|
+
page?: number
|
|
190
|
+
pageSize?: number
|
|
191
|
+
searchKey?: string
|
|
192
|
+
filterNamespace?: string
|
|
193
|
+
cluster?: string
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export type GetClusterPodLabelListRespLabel = {
|
|
197
|
+
key?: string
|
|
198
|
+
value?: string[]
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export type GetClusterPodLabelListResp = {
|
|
202
|
+
items?: GetClusterPodLabelListRespLabel[]
|
|
203
|
+
pagination?: CommonCommon.Pagination
|
|
204
|
+
}
|
|
205
|
+
|
|
45
206
|
export type GetClusterNodePortListReq = {
|
|
46
207
|
cluster?: string
|
|
47
208
|
}
|
|
@@ -56,6 +217,24 @@ export type EventSource = {
|
|
|
56
217
|
host?: string
|
|
57
218
|
}
|
|
58
219
|
|
|
220
|
+
export type GetMetallbIPAddressPoolsListReq = {
|
|
221
|
+
cluster?: string
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export type GetMetallbIPAddressPoolsListRespItem = {
|
|
225
|
+
name?: string
|
|
226
|
+
addresses?: string[]
|
|
227
|
+
autoAssign?: boolean
|
|
228
|
+
avoidBuggyIPs?: boolean
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export type GetMetallbIPAddressPoolsListResp = {
|
|
232
|
+
items?: GetMetallbIPAddressPoolsListRespItem[]
|
|
233
|
+
isSupportLb?: boolean
|
|
234
|
+
externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy[]
|
|
235
|
+
lbTyp?: CommonCommon.LBTyp[]
|
|
236
|
+
}
|
|
237
|
+
|
|
59
238
|
export type GetEventListReq = {
|
|
60
239
|
cluster?: string
|
|
61
240
|
namespace?: string
|
|
@@ -96,6 +275,7 @@ export type GetWorkspaceListReq = {
|
|
|
96
275
|
export type GetWorkspaceListRespItem = {
|
|
97
276
|
workspaceId?: number
|
|
98
277
|
alias?: string
|
|
278
|
+
visible?: boolean
|
|
99
279
|
}
|
|
100
280
|
|
|
101
281
|
export type GetWorkspaceListResp = {
|
|
@@ -105,13 +285,28 @@ export type GetWorkspaceListResp = {
|
|
|
105
285
|
|
|
106
286
|
export type GetClusterListReq = {
|
|
107
287
|
workspaceId?: number
|
|
288
|
+
searchKey?: string
|
|
108
289
|
}
|
|
109
290
|
|
|
110
291
|
export type GetClusterListResp = {
|
|
111
292
|
items?: string[]
|
|
293
|
+
clusters?: ClusterItem[]
|
|
112
294
|
pagination?: CommonCommon.Pagination
|
|
113
295
|
}
|
|
114
296
|
|
|
297
|
+
export type ClusterItemMetadata = {
|
|
298
|
+
name?: string
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export type ClusterItemStatus = {
|
|
302
|
+
networkMode?: ClusterItemNetworkMode[]
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export type ClusterItem = {
|
|
306
|
+
metadata?: ClusterItemMetadata
|
|
307
|
+
status?: ClusterItemStatus
|
|
308
|
+
}
|
|
309
|
+
|
|
115
310
|
export type GetClusterNamespaceListReq = {
|
|
116
311
|
workspaceId?: number
|
|
117
312
|
cluster?: string
|
|
@@ -143,6 +338,9 @@ export class Cluster {
|
|
|
143
338
|
static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
|
|
144
339
|
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
145
340
|
}
|
|
341
|
+
static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
|
|
342
|
+
return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
343
|
+
}
|
|
146
344
|
static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
|
|
147
345
|
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/minio/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
148
346
|
}
|
|
@@ -152,4 +350,19 @@ export class Cluster {
|
|
|
152
350
|
static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
|
|
153
351
|
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
154
352
|
}
|
|
353
|
+
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
354
|
+
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
355
|
+
}
|
|
356
|
+
static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
|
|
357
|
+
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
358
|
+
}
|
|
359
|
+
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
360
|
+
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
361
|
+
}
|
|
362
|
+
static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
|
|
363
|
+
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
364
|
+
}
|
|
365
|
+
static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
|
|
366
|
+
return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
367
|
+
}
|
|
155
368
|
}
|
package/common.pb.ts
CHANGED
|
@@ -4,6 +4,22 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
export enum ExternalTrafficPolicy {
|
|
8
|
+
Cluster = "Cluster",
|
|
9
|
+
Local = "Local",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum LBTyp {
|
|
13
|
+
MetalLB = "MetalLB",
|
|
14
|
+
Others = "Others",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum ServiceType {
|
|
18
|
+
ClusterIP = "ClusterIP",
|
|
19
|
+
NodePort = "NodePort",
|
|
20
|
+
LoadBalancer = "LoadBalancer",
|
|
21
|
+
}
|
|
22
|
+
|
|
7
23
|
export enum PageInfoReqSortDir {
|
|
8
24
|
ASC = "ASC",
|
|
9
25
|
DESC = "DESC",
|
|
@@ -129,10 +145,73 @@ export type PodCommon = {
|
|
|
129
145
|
cpuLimit?: number
|
|
130
146
|
memoryUsage?: number
|
|
131
147
|
memoryLimit?: number
|
|
148
|
+
pvUsedInGb?: number
|
|
149
|
+
pvAllocatedInGb?: number
|
|
132
150
|
conditions?: PodCommonCondition[]
|
|
151
|
+
containersName?: string[]
|
|
152
|
+
ownerReference?: OwnerReference[]
|
|
153
|
+
initContainersName?: string[]
|
|
154
|
+
initContainersStatuses?: ContainerStatus[]
|
|
155
|
+
containersStatuses?: ContainerStatus[]
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export type OwnerReference = {
|
|
159
|
+
uid?: string
|
|
160
|
+
controller?: boolean
|
|
161
|
+
name?: string
|
|
162
|
+
kind?: string
|
|
133
163
|
}
|
|
134
164
|
|
|
135
165
|
export type CommonItemStatus = {
|
|
136
166
|
serviceAddresses?: string[]
|
|
137
167
|
webManagerAddress?: string
|
|
168
|
+
webLogAddress?: string
|
|
169
|
+
avgPvAllocatedInGb?: number
|
|
170
|
+
avgPvUsedInGb?: number
|
|
171
|
+
cpuUtilization?: number
|
|
172
|
+
memoryUtilization?: number
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export type AccessWhitelistInternal = {
|
|
176
|
+
namespace?: string
|
|
177
|
+
podSelector?: {[key: string]: string}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export type AccessWhitelistExternal = {
|
|
181
|
+
cidr?: string
|
|
182
|
+
ip?: string
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export type AccessWhitelist = {
|
|
186
|
+
internals?: AccessWhitelistInternal[]
|
|
187
|
+
externals?: AccessWhitelistExternal[]
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export type ContainerStatus = {
|
|
191
|
+
name?: string
|
|
192
|
+
state?: ContainerState
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export type ContainerState = {
|
|
196
|
+
waiting?: ContainerStateWaiting
|
|
197
|
+
running?: ContainerStateRunning
|
|
198
|
+
terminated?: ContainerStateTerminated
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export type ContainerStateWaiting = {
|
|
202
|
+
reason?: string
|
|
203
|
+
message?: string
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type ContainerStateRunning = {
|
|
207
|
+
startedAt?: string
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export type ContainerStateTerminated = {
|
|
211
|
+
exitCode?: number
|
|
212
|
+
signal?: number
|
|
213
|
+
reason?: string
|
|
214
|
+
message?: string
|
|
215
|
+
startedAt?: string
|
|
216
|
+
finishedAt?: string
|
|
138
217
|
}
|
package/insight.pb.ts
CHANGED
|
@@ -20,27 +20,23 @@ export enum TargetType {
|
|
|
20
20
|
DEPLOYMENT = "DEPLOYMENT",
|
|
21
21
|
STATEFULSET = "STATEFULSET",
|
|
22
22
|
DAEMONSET = "DAEMONSET",
|
|
23
|
-
CRONJOB = "CRONJOB",
|
|
24
23
|
POD = "POD",
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
export enum AlertStatus {
|
|
28
|
-
ALERT_STATUS_UNSPECIFIED = "ALERT_STATUS_UNSPECIFIED",
|
|
29
|
-
ALERT_STATUS_FIRING = "ALERT_STATUS_FIRING",
|
|
30
|
-
ALERT_STATUS_RESOLVED = "ALERT_STATUS_RESOLVED",
|
|
31
|
-
}
|
|
32
|
-
|
|
33
26
|
export type AlertSummary = {
|
|
34
|
-
|
|
27
|
+
id?: string
|
|
28
|
+
groupName?: string
|
|
29
|
+
groupId?: string
|
|
35
30
|
ruleName?: string
|
|
36
|
-
|
|
31
|
+
ruleId?: string
|
|
37
32
|
clusterName?: string
|
|
38
33
|
namespace?: string
|
|
39
34
|
targetType?: TargetType
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
target?: string
|
|
36
|
+
severity?: Severity
|
|
37
|
+
value?: string
|
|
38
|
+
notifyResponse?: string
|
|
42
39
|
description?: string
|
|
43
40
|
startAt?: string
|
|
44
41
|
updateAt?: string
|
|
45
|
-
notifyResponse?: string
|
|
46
42
|
}
|
package/minio.pb.ts
CHANGED
|
@@ -32,12 +32,6 @@ export enum GetMinioConfReqSortDir {
|
|
|
32
32
|
DESC = "DESC",
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export enum CreateMinioReqServiceType {
|
|
36
|
-
ClusterIP = "ClusterIP",
|
|
37
|
-
NodePort = "NodePort",
|
|
38
|
-
LoadBalancer = "LoadBalancer",
|
|
39
|
-
}
|
|
40
|
-
|
|
41
35
|
export enum CreateMinioReqInstanceType {
|
|
42
36
|
HighAvailable = "HighAvailable",
|
|
43
37
|
Single = "Single",
|
|
@@ -128,7 +122,7 @@ export type CreateMinioReq = {
|
|
|
128
122
|
volumesPerServer?: number
|
|
129
123
|
storageClassName?: string
|
|
130
124
|
storageCapacity?: string
|
|
131
|
-
serviceType?:
|
|
125
|
+
serviceType?: CommonCommon.ServiceType
|
|
132
126
|
serviceAnnotations?: {[key: string]: string}
|
|
133
127
|
ports?: CreateMinioReqPorts[]
|
|
134
128
|
cpuRequest?: string
|
|
@@ -138,13 +132,17 @@ export type CreateMinioReq = {
|
|
|
138
132
|
instanceType?: CreateMinioReqInstanceType
|
|
139
133
|
consoleAccessKey?: string
|
|
140
134
|
consoleSecretKey?: string
|
|
141
|
-
consoleServiceType?:
|
|
135
|
+
consoleServiceType?: CommonCommon.ServiceType
|
|
142
136
|
consoleNodePort?: number
|
|
143
137
|
consoleServiceAnnotations?: {[key: string]: string}
|
|
144
138
|
minioRootUser?: string
|
|
145
139
|
minioRootPassword?: string
|
|
146
140
|
buckets?: CreateMinioReqBucket[]
|
|
147
141
|
affinity?: CommonCommon.Affinity
|
|
142
|
+
externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
|
|
143
|
+
lbTyp?: CommonCommon.LBTyp
|
|
144
|
+
lbPoolName?: string
|
|
145
|
+
lbAddress?: string
|
|
148
146
|
}
|
|
149
147
|
|
|
150
148
|
export type UpdateMinioConfReq = {
|
|
@@ -272,6 +270,8 @@ export type GetMinioGrafanaAddrReq = {
|
|
|
272
270
|
cluster?: string
|
|
273
271
|
namespace?: string
|
|
274
272
|
name?: string
|
|
273
|
+
from?: string
|
|
274
|
+
to?: string
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
export type GetMinioGrafanaAddrResp = {
|
|
@@ -311,6 +311,8 @@ export type TenantItemStatus = {
|
|
|
311
311
|
webManagerAddr?: string
|
|
312
312
|
clusterIPs?: string[]
|
|
313
313
|
serviceAddr?: string
|
|
314
|
+
isControl?: boolean
|
|
315
|
+
consoleAccessToken?: string
|
|
314
316
|
common?: CommonCommon.CommonItemStatus
|
|
315
317
|
}
|
|
316
318
|
|