@daocloud-proto/mcamel-minio 0.2.0-28 → 0.2.0-282
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 +78 -0
- package/cluster.pb.ts +203 -0
- package/common.pb.ts +77 -0
- package/insight.pb.ts +8 -12
- package/minio.pb.ts +8 -8
- package/package.json +1 -1
package/cloudshell.pb.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
|
|
8
|
+
import * as CommonCommon from "./common.pb"
|
|
9
|
+
import * as fm from "./fetch.pb"
|
|
10
|
+
|
|
11
|
+
export enum CreateCloudShellRequestType {
|
|
12
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
13
|
+
bash = "bash",
|
|
14
|
+
exec = "exec",
|
|
15
|
+
logs = "logs",
|
|
16
|
+
upload = "upload",
|
|
17
|
+
download = "download",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type ObjectMeta = {
|
|
21
|
+
name?: string
|
|
22
|
+
namespace?: string
|
|
23
|
+
uid?: string
|
|
24
|
+
resourceVersion?: string
|
|
25
|
+
creationTimestamp?: string
|
|
26
|
+
deletionTimestamp?: string
|
|
27
|
+
labels?: {[key: string]: string}
|
|
28
|
+
annotations?: {[key: string]: string}
|
|
29
|
+
ownerReferences?: CommonCommon.OwnerReference[]
|
|
30
|
+
cluster?: string
|
|
31
|
+
workspaceAlias?: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type CloudShell = {
|
|
35
|
+
metadata?: ObjectMeta
|
|
36
|
+
spec?: CloudShellSpec
|
|
37
|
+
status?: CloudShellStatus
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type CloudShellSpec = {
|
|
41
|
+
configMapName?: string
|
|
42
|
+
once?: boolean
|
|
43
|
+
commandAction?: string
|
|
44
|
+
ttl?: number
|
|
45
|
+
cleanup?: boolean
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type CloudShellStatus = {
|
|
49
|
+
phase?: string
|
|
50
|
+
accessUrl?: string
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type CreateCloudShellRequest = {
|
|
54
|
+
type?: CreateCloudShellRequestType
|
|
55
|
+
cluster?: string
|
|
56
|
+
namespace?: string
|
|
57
|
+
podName?: string
|
|
58
|
+
filePath?: string
|
|
59
|
+
container?: string
|
|
60
|
+
logCount?: number
|
|
61
|
+
data?: CloudShell
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type GetorDeleteCloudShellRequest = {
|
|
65
|
+
name?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export class CloudShellService {
|
|
69
|
+
static CreateCloudShell(req: CreateCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
|
|
70
|
+
return fm.fetchReq<CreateCloudShellRequest, CloudShell>(`/apis/mcamel.io/minio/v1alpha1/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
71
|
+
}
|
|
72
|
+
static GetCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
|
|
73
|
+
return fm.fetchReq<GetorDeleteCloudShellRequest, CloudShell>(`/apis/mcamel.io/minio/v1alpha1/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
74
|
+
}
|
|
75
|
+
static DeleteCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
76
|
+
return fm.fetchReq<GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/mcamel.io/minio/v1alpha1/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
77
|
+
}
|
|
78
|
+
}
|
package/cluster.pb.ts
CHANGED
|
@@ -7,12 +7,47 @@
|
|
|
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 GetClusterRespNetworkMode {
|
|
41
|
+
Unknown = "Unknown",
|
|
42
|
+
Flannel = "Flannel",
|
|
43
|
+
Calico = "Calico",
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export enum GetAllEventListReqSortDir {
|
|
47
|
+
ASC = "ASC",
|
|
48
|
+
DESC = "DESC",
|
|
49
|
+
}
|
|
50
|
+
|
|
16
51
|
export enum GetEventListReqKind {
|
|
17
52
|
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
18
53
|
Pod = "Pod",
|
|
@@ -28,6 +63,119 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
|
28
63
|
Install = "Install",
|
|
29
64
|
}
|
|
30
65
|
|
|
66
|
+
export type GetClusterReq = {
|
|
67
|
+
cluster?: string
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GetClusterRespMetadata = {
|
|
71
|
+
name?: string
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type GetClusterRespStatus = {
|
|
75
|
+
networkMode?: GetClusterRespNetworkMode[]
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type GetClusterResp = {
|
|
79
|
+
metadata?: GetClusterRespMetadata
|
|
80
|
+
status?: GetClusterRespStatus
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type GetPermissionsListReq = {
|
|
84
|
+
workspaceId?: number
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export type GetPermissionsListRespPermissions = {
|
|
88
|
+
getInstance?: boolean
|
|
89
|
+
createInstance?: boolean
|
|
90
|
+
updateInstance?: boolean
|
|
91
|
+
deleteInstance?: boolean
|
|
92
|
+
getMetric?: boolean
|
|
93
|
+
getInstanceLog?: boolean
|
|
94
|
+
getConfig?: boolean
|
|
95
|
+
updateConfig?: boolean
|
|
96
|
+
getBackup?: boolean
|
|
97
|
+
createBackup?: boolean
|
|
98
|
+
updateBackup?: boolean
|
|
99
|
+
deleteBackup?: boolean
|
|
100
|
+
getBackupConf?: boolean
|
|
101
|
+
createBackupConf?: boolean
|
|
102
|
+
updateBackupConf?: boolean
|
|
103
|
+
deleteBackupConf?: boolean
|
|
104
|
+
getTemplate?: boolean
|
|
105
|
+
createTemplate?: boolean
|
|
106
|
+
updateTemplate?: boolean
|
|
107
|
+
deleteTemplate?: boolean
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type GetPermissionsListResp = {
|
|
111
|
+
permissionsBool?: GetPermissionsListRespPermissions
|
|
112
|
+
permissions?: PermissionsType[]
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export type GetAllEventKindsListResp = {
|
|
116
|
+
data?: string[]
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type GetAllEventKindsListReq = {
|
|
120
|
+
cluster?: string
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type GetAllEventListReq = {
|
|
124
|
+
page?: number
|
|
125
|
+
pageSize?: number
|
|
126
|
+
sortDir?: GetAllEventListReqSortDir
|
|
127
|
+
sortBy?: string
|
|
128
|
+
searchKey?: string
|
|
129
|
+
cluster?: string
|
|
130
|
+
namespace?: string
|
|
131
|
+
name?: string
|
|
132
|
+
eventType?: EventType
|
|
133
|
+
kindName?: string
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export type GetAllEventListRespItemsSource = {
|
|
137
|
+
component?: string
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type GetAllEventListRespItemsMetadata = {
|
|
141
|
+
uid?: string
|
|
142
|
+
name?: string
|
|
143
|
+
namespace?: string
|
|
144
|
+
annotations?: {[key: string]: string}
|
|
145
|
+
resourceVersion?: string
|
|
146
|
+
creationTimestamp?: string
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type GetAllEventListRespItemsInvolvedObject = {
|
|
150
|
+
uid?: string
|
|
151
|
+
kind?: string
|
|
152
|
+
name?: string
|
|
153
|
+
namespace?: string
|
|
154
|
+
apiVersion?: string
|
|
155
|
+
resourceVersion?: string
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export type GetAllEventListRespItems = {
|
|
159
|
+
kind?: string
|
|
160
|
+
type?: string
|
|
161
|
+
count?: number
|
|
162
|
+
reason?: string
|
|
163
|
+
source?: GetAllEventListRespItemsSource
|
|
164
|
+
message?: string
|
|
165
|
+
metadata?: GetAllEventListRespItemsMetadata
|
|
166
|
+
apiVersion?: string
|
|
167
|
+
lastTimestamp?: string
|
|
168
|
+
firstTimestamp?: string
|
|
169
|
+
involvedObject?: GetAllEventListRespItemsInvolvedObject
|
|
170
|
+
reportingInstance?: string
|
|
171
|
+
reportingComponent?: string
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type GetAllEventListResp = {
|
|
175
|
+
items?: GetAllEventListRespItems[]
|
|
176
|
+
pagination?: CommonCommon.Pagination
|
|
177
|
+
}
|
|
178
|
+
|
|
31
179
|
export type GetClusterNodeLabelListReq = {
|
|
32
180
|
cluster?: string
|
|
33
181
|
}
|
|
@@ -42,6 +190,24 @@ export type GetClusterNodeLabelListResp = {
|
|
|
42
190
|
pagination?: CommonCommon.Pagination
|
|
43
191
|
}
|
|
44
192
|
|
|
193
|
+
export type GetClusterPodLabelListReq = {
|
|
194
|
+
page?: number
|
|
195
|
+
pageSize?: number
|
|
196
|
+
searchKey?: string
|
|
197
|
+
filterNamespace?: string
|
|
198
|
+
cluster?: string
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export type GetClusterPodLabelListRespLabel = {
|
|
202
|
+
key?: string
|
|
203
|
+
value?: string[]
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type GetClusterPodLabelListResp = {
|
|
207
|
+
items?: GetClusterPodLabelListRespLabel[]
|
|
208
|
+
pagination?: CommonCommon.Pagination
|
|
209
|
+
}
|
|
210
|
+
|
|
45
211
|
export type GetClusterNodePortListReq = {
|
|
46
212
|
cluster?: string
|
|
47
213
|
}
|
|
@@ -56,6 +222,24 @@ export type EventSource = {
|
|
|
56
222
|
host?: string
|
|
57
223
|
}
|
|
58
224
|
|
|
225
|
+
export type GetMetallbIPAddressPoolsListReq = {
|
|
226
|
+
cluster?: string
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export type GetMetallbIPAddressPoolsListRespItem = {
|
|
230
|
+
name?: string
|
|
231
|
+
addresses?: string[]
|
|
232
|
+
autoAssign?: boolean
|
|
233
|
+
avoidBuggyIPs?: boolean
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export type GetMetallbIPAddressPoolsListResp = {
|
|
237
|
+
items?: GetMetallbIPAddressPoolsListRespItem[]
|
|
238
|
+
isSupportLb?: boolean
|
|
239
|
+
externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy[]
|
|
240
|
+
lbTyp?: CommonCommon.LBTyp[]
|
|
241
|
+
}
|
|
242
|
+
|
|
59
243
|
export type GetEventListReq = {
|
|
60
244
|
cluster?: string
|
|
61
245
|
namespace?: string
|
|
@@ -96,6 +280,7 @@ export type GetWorkspaceListReq = {
|
|
|
96
280
|
export type GetWorkspaceListRespItem = {
|
|
97
281
|
workspaceId?: number
|
|
98
282
|
alias?: string
|
|
283
|
+
visible?: boolean
|
|
99
284
|
}
|
|
100
285
|
|
|
101
286
|
export type GetWorkspaceListResp = {
|
|
@@ -134,6 +319,9 @@ export class Cluster {
|
|
|
134
319
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
135
320
|
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
136
321
|
}
|
|
322
|
+
static GetCluster(req: GetClusterReq, initReq?: fm.InitReq): Promise<GetClusterResp> {
|
|
323
|
+
return fm.fetchReq<GetClusterReq, GetClusterResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
324
|
+
}
|
|
137
325
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
138
326
|
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
139
327
|
}
|
|
@@ -143,6 +331,9 @@ export class Cluster {
|
|
|
143
331
|
static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
|
|
144
332
|
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
145
333
|
}
|
|
334
|
+
static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
|
|
335
|
+
return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
336
|
+
}
|
|
146
337
|
static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
|
|
147
338
|
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/minio/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
148
339
|
}
|
|
@@ -152,4 +343,16 @@ export class Cluster {
|
|
|
152
343
|
static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
|
|
153
344
|
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
154
345
|
}
|
|
346
|
+
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
347
|
+
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"})
|
|
348
|
+
}
|
|
349
|
+
static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
|
|
350
|
+
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
351
|
+
}
|
|
352
|
+
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
353
|
+
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
354
|
+
}
|
|
355
|
+
static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
|
|
356
|
+
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
357
|
+
}
|
|
155
358
|
}
|
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,71 @@ 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
|
+
}
|
|
172
|
+
|
|
173
|
+
export type AccessWhitelistInternal = {
|
|
174
|
+
namespace?: string
|
|
175
|
+
podSelector?: {[key: string]: string}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export type AccessWhitelistExternal = {
|
|
179
|
+
cidr?: string
|
|
180
|
+
ip?: string
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export type AccessWhitelist = {
|
|
184
|
+
internals?: AccessWhitelistInternal[]
|
|
185
|
+
externals?: AccessWhitelistExternal[]
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export type ContainerStatus = {
|
|
189
|
+
name?: string
|
|
190
|
+
state?: ContainerState
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export type ContainerState = {
|
|
194
|
+
waiting?: ContainerStateWaiting
|
|
195
|
+
running?: ContainerStateRunning
|
|
196
|
+
terminated?: ContainerStateTerminated
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export type ContainerStateWaiting = {
|
|
200
|
+
reason?: string
|
|
201
|
+
message?: string
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export type ContainerStateRunning = {
|
|
205
|
+
startedAt?: string
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export type ContainerStateTerminated = {
|
|
209
|
+
exitCode?: number
|
|
210
|
+
signal?: number
|
|
211
|
+
reason?: string
|
|
212
|
+
message?: string
|
|
213
|
+
startedAt?: string
|
|
214
|
+
finishedAt?: string
|
|
138
215
|
}
|
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 = {
|