@daocloud-proto/skoala 0.16.1-8 → 0.16.1-80

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.
@@ -72,6 +72,18 @@ export enum Prerequisite {
72
72
  SkoalaInit = "SkoalaInit",
73
73
  }
74
74
 
75
+ export enum LBType {
76
+ LB_TYPE_UNSPECIFIED = "LB_TYPE_UNSPECIFIED",
77
+ MetalLB = "MetalLB",
78
+ Other = "Other",
79
+ }
80
+
81
+ export enum ExternalTrafficPolicy {
82
+ EXTERNAL_TRAFFIC_POLICY_UNSPECIFIED = "EXTERNAL_TRAFFIC_POLICY_UNSPECIFIED",
83
+ TrafficPolicyCluster = "TrafficPolicyCluster",
84
+ TrafficPolicyLocal = "TrafficPolicyLocal",
85
+ }
86
+
75
87
  export type Cluster = {
76
88
  id?: string
77
89
  name?: string
@@ -127,4 +139,10 @@ export type Redis = {
127
139
  id?: string
128
140
  name?: string
129
141
  address?: string
142
+ }
143
+
144
+ export type K8SServicePort = {
145
+ port?: number
146
+ name?: string
147
+ protocol?: string
130
148
  }
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "./common.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Resource from "./resource.pb"
8
9
 
9
10
  export enum ListNamespaceReqGatewayStatus {
10
11
  NoFilter = "NoFilter",
@@ -119,6 +120,7 @@ export type RegistryServiceInfo = {
119
120
  kubernetesNamespaceName?: string
120
121
  kubernetesPorts?: string[]
121
122
  kubernetesLabels?: string[]
123
+ servicePorts?: SkoalaApiGeneralV1alpha1Common.K8SServicePort[]
122
124
  registryType?: RegistryServiceInfoRegistryType
123
125
  isHosted?: boolean
124
126
  }
@@ -132,6 +134,7 @@ export type MeshServiceInfo = {
132
134
  serviceName?: string
133
135
  namespaceName?: string
134
136
  sesameId?: string
137
+ servicePorts?: SkoalaApiGeneralV1alpha1Common.K8SServicePort[]
135
138
  }
136
139
 
137
140
  export type ListServiceReq = {
@@ -157,6 +160,7 @@ export type ListServiceInfo = {
157
160
  sesameServiceName?: string
158
161
  sesameNamespaceName?: string
159
162
  sesameId?: string
163
+ servicePorts?: SkoalaApiGeneralV1alpha1Common.K8SServicePort[]
160
164
  }
161
165
 
162
166
  export type ListNamespaceRes = {
@@ -180,6 +184,20 @@ export type ListStorageClassesReq = {
180
184
  clusterName?: string
181
185
  }
182
186
 
187
+ export type CheckResourceQuotaReq = {
188
+ workspaceId?: string
189
+ clusterName?: string
190
+ namespaceName?: string
191
+ resourceQuotaName?: string
192
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
193
+ }
194
+
195
+ export type CheckResourceQuotaRes = {
196
+ isCreated?: boolean
197
+ hard?: {[key: string]: string}
198
+ used?: {[key: string]: string}
199
+ }
200
+
183
201
  export type ListStorageClassesRes = {
184
202
  items?: string[]
185
203
  }
@@ -214,4 +232,34 @@ export type ListRedisReq = {
214
232
  export type ListRedisRes = {
215
233
  items?: SkoalaApiGeneralV1alpha1Common.Redis[]
216
234
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
235
+ }
236
+
237
+ export type GetNodePortStatusReq = {
238
+ workspaceId?: string
239
+ clusterName?: string
240
+ portNumber?: number
241
+ }
242
+
243
+ export type GetNodePortStatusRes = {
244
+ inUse?: boolean
245
+ }
246
+
247
+ export type ListClusterLBAddrPoolReq = {
248
+ workspaceId?: string
249
+ clusterName?: string
250
+ lbType?: SkoalaApiGeneralV1alpha1Common.LBType
251
+ page?: number
252
+ pageSize?: number
253
+ }
254
+
255
+ export type AddrPool = {
256
+ name?: string
257
+ addresses?: string[]
258
+ autoAssign?: boolean
259
+ avoidBuggyIps?: boolean
260
+ }
261
+
262
+ export type ListClusterLBAddrPoolRes = {
263
+ items?: AddrPool[]
264
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
217
265
  }
@@ -182,6 +182,10 @@ export type EnvoyService = {
182
182
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
183
183
  http?: Port
184
184
  https?: Port
185
+ trafficPolicy?: SkoalaApiGeneralV1alpha1Common.ExternalTrafficPolicy
186
+ lbType?: SkoalaApiGeneralV1alpha1Common.LBType
187
+ addrPoolName?: string
188
+ lbAddr?: string
185
189
  }
186
190
 
187
191
  export type ContourService = {
@@ -55,9 +55,14 @@ export type SecretSubjectAltName = {
55
55
  subjectAltName?: string[]
56
56
  }
57
57
 
58
+ export type AdvancedServiceConfigHealthcheckPolicy = {
59
+ port?: number
60
+ }
61
+
58
62
  export type AdvancedServiceConfig = {
59
63
  circuitBreakerPolicy?: CircuitBreakerPolicy
60
64
  tlsPolicy?: TLSPolicy
65
+ healthcheckPolicy?: AdvancedServiceConfigHealthcheckPolicy
61
66
  }
62
67
 
63
68
  export type TLSPolicy = {
@@ -147,6 +152,7 @@ export type ServiceInfo = {
147
152
  createdAt?: string
148
153
  serviceType?: SesameServiceType
149
154
  sesameId?: string
155
+ servicePort?: SkoalaApiGeneralV1alpha1Common.K8SServicePort[]
150
156
  }
151
157
 
152
158
  export type ServiceSourceInfo = {
@@ -183,6 +183,7 @@ export type NacosConfig = {
183
183
  ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
184
184
  databaseEnabled?: boolean
185
185
  databaseParam?: DatabaseParam
186
+ lbParam?: LoadBalanceParam
186
187
  volume?: Volume
187
188
  insightEnabled?: boolean
188
189
  certificationEnabled?: boolean
@@ -202,6 +203,12 @@ export type DatabaseParam = {
202
203
  db?: string
203
204
  }
204
205
 
206
+ export type LoadBalanceParam = {
207
+ lbType?: SkoalaApiGeneralV1alpha1Common.LBType
208
+ addrPoolName?: string
209
+ lbAddr?: string
210
+ }
211
+
205
212
  export type ListNacosServiceReq = {
206
213
  workspaceId?: string
207
214
  clusterName?: string
@@ -87,7 +87,7 @@ export type GetSentinelDashGrafanaRes = {
87
87
  export type GetAppsSentinelGrafanaReq = {
88
88
  workspaceId?: string
89
89
  clusterName?: string
90
- namespaceName?: string
90
+ sentinel?: string
91
91
  app?: string
92
92
  }
93
93
 
@@ -140,6 +140,15 @@ export type ListClusterFlowReq = {
140
140
  appName?: string
141
141
  }
142
142
 
143
+ export type GetClusterFlowReq = {
144
+ workspaceId?: string
145
+ clusterName?: string
146
+ namespaceName?: string
147
+ sentinelName?: string
148
+ appName?: string
149
+ tokenServer?: string
150
+ }
151
+
143
152
  export type DeleteClusterFlowReq = {
144
153
  workspaceId?: string
145
154
  clusterName?: string
@@ -154,6 +163,15 @@ export type ListClusterFlowRes = {
154
163
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
155
164
  }
156
165
 
166
+ export type GetClusterFlowRes = {
167
+ tokenServer?: string
168
+ port?: number
169
+ machineType?: MachineType
170
+ maxQps?: number
171
+ clients?: string[]
172
+ remainingClients?: string[]
173
+ }
174
+
157
175
  export type ListTokenServerReq = {
158
176
  workspaceId?: string
159
177
  clusterName?: string
@@ -178,6 +196,7 @@ export type TokenServerReq = {
178
196
  port?: number
179
197
  maxQps?: number
180
198
  clients?: string[]
199
+ remainingClients?: string[]
181
200
  }
182
201
 
183
202
  export type ListAppReq = {
@@ -143,7 +143,7 @@ export type GetVirtualhostRes = {
143
143
  corsPolicy?: CorsPolicy
144
144
  tlsPolicy?: VirtualhostTLSPolicy
145
145
  jwtProviders?: JwtProvider[]
146
- authorizationPolicy?: AuthorizationPolicy
146
+ authPolicy?: AuthorizationPolicy
147
147
  }
148
148
 
149
149
  export type UpdateVirtualhostReq = {
@@ -69,6 +69,9 @@ export class Skoala {
69
69
  static ListClusterStorageClasses(req: SkoalaApiGeneralV1alpha1Skoala.ListStorageClassesReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListStorageClassesRes> {
70
70
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListStorageClassesReq, SkoalaApiGeneralV1alpha1Skoala.ListStorageClassesRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/storage_classes?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
71
71
  }
72
+ static CheckResourceQuota(req: SkoalaApiGeneralV1alpha1Skoala.CheckResourceQuotaReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.CheckResourceQuotaRes> {
73
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.CheckResourceQuotaReq, SkoalaApiGeneralV1alpha1Skoala.CheckResourceQuotaRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/resource_quota/${req["resourceQuotaName"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
74
+ }
72
75
  static GetPrerequisite(req: SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteRes> {
73
76
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteReq, SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/prerequisites/${req["prerequisite"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "prerequisite"])}`, {...initReq, method: "GET"})
74
77
  }
@@ -78,6 +81,12 @@ export class Skoala {
78
81
  static ListRedis(req: SkoalaApiGeneralV1alpha1Skoala.ListRedisReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListRedisRes> {
79
82
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListRedisReq, SkoalaApiGeneralV1alpha1Skoala.ListRedisRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/redis?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
80
83
  }
84
+ static GetNodePortStatus(req: SkoalaApiGeneralV1alpha1Skoala.GetNodePortStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.GetNodePortStatusRes> {
85
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.GetNodePortStatusReq, SkoalaApiGeneralV1alpha1Skoala.GetNodePortStatusRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/nodeport/${req["portNumber"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "portNumber"])}`, {...initReq, method: "GET"})
86
+ }
87
+ static ListClusterLBAddrPool(req: SkoalaApiGeneralV1alpha1Skoala.ListClusterLBAddrPoolReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListClusterLBAddrPoolRes> {
88
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListClusterLBAddrPoolReq, SkoalaApiGeneralV1alpha1Skoala.ListClusterLBAddrPoolRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/lb/${req["lbType"]}/addrpools?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "lbType"])}`, {...initReq, method: "GET"})
89
+ }
81
90
  }
82
91
  export class Registry {
83
92
  static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
@@ -264,6 +273,9 @@ export class Sentinel {
264
273
  static ListClusterFlow(req: SkoalaApiHostedV1alpha1Sentinel.ListClusterFlowReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListClusterFlowRes> {
265
274
  return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListClusterFlowReq, SkoalaApiHostedV1alpha1Sentinel.ListClusterFlowRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/cluster-flows?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName"])}`, {...initReq, method: "GET"})
266
275
  }
276
+ static GetClusterFlow(req: SkoalaApiHostedV1alpha1Sentinel.GetClusterFlowReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetClusterFlowRes> {
277
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetClusterFlowReq, SkoalaApiHostedV1alpha1Sentinel.GetClusterFlowRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/tokenservers/${req["tokenServer"]}/cluster-flows?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName", "tokenServer"])}`, {...initReq, method: "GET"})
278
+ }
267
279
  static ListTokenServer(req: SkoalaApiHostedV1alpha1Sentinel.ListTokenServerReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListTokenServerRes> {
268
280
  return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListTokenServerReq, SkoalaApiHostedV1alpha1Sentinel.ListTokenServerRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/token-servers?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName"])}`, {...initReq, method: "GET"})
269
281
  }
@@ -360,7 +372,7 @@ export class Grafana {
360
372
  return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaReq, SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
361
373
  }
362
374
  static GetAppsSentinelGrafana(req: SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaRes> {
363
- return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaReq, SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/apps/${req["app"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "app"])}`, {...initReq, method: "GET"})
375
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaReq, SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/sentinels/${req["sentinel"]}/apps/${req["app"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "sentinel", "app"])}`, {...initReq, method: "GET"})
364
376
  }
365
377
  static GetNacosGrafana(req: SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaRes> {
366
378
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaReq, SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.16.1-8",
3
+ "version": "0.16.1-80",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {