@daocloud-proto/skoala 0.10.1-2 → 0.10.1-22
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/api/general/v1alpha1/common.pb.ts +2 -2
- package/api/general/v1alpha1/version.pb.ts +1 -1
- package/api/hosted/v1alpha1/gateway.pb.ts +12 -17
- package/api/hosted/v1alpha1/gateway_plugin.pb.ts +1 -1
- package/api/hosted/v1alpha1/nacos.pb.ts +6 -1
- package/api/hosted/v1alpha1/plugins.pb.ts +1 -1
- package/api/integrated/v1alpha1/registry.pb.ts +1 -0
- package/api/skoala/v1alpha1/skoala.pb.ts +4 -4
- package/package.json +1 -1
|
@@ -141,10 +141,17 @@ export type GetGatewayReq = {
|
|
|
141
141
|
gatewayName?: string
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
export type
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
export type GetGatewayComponentsReq = {
|
|
145
|
+
workspaceId?: string
|
|
146
|
+
clusterName?: string
|
|
147
|
+
namespaceName?: string
|
|
148
|
+
gatewayName?: string
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type GetGatewayComponentsRes = {
|
|
152
|
+
gatway?: SkoalaApiGeneralV1alpha1Common.Component
|
|
153
|
+
rls?: SkoalaApiGeneralV1alpha1Common.Component
|
|
154
|
+
authz?: SkoalaApiGeneralV1alpha1Common.Component
|
|
148
155
|
}
|
|
149
156
|
|
|
150
157
|
export type GetGatewayRes = {
|
|
@@ -235,7 +242,7 @@ export type NormalConfig = {
|
|
|
235
242
|
}
|
|
236
243
|
|
|
237
244
|
export type GatewayConfig = {
|
|
238
|
-
|
|
245
|
+
component?: SkoalaApiGeneralV1alpha1Common.Component
|
|
239
246
|
normal?: NormalConfig
|
|
240
247
|
advanced?: AdvancedConfig
|
|
241
248
|
}
|
|
@@ -275,18 +282,6 @@ export type RollingUpdate = {
|
|
|
275
282
|
maxUnavailable?: string
|
|
276
283
|
}
|
|
277
284
|
|
|
278
|
-
export type GetImagesRes = {
|
|
279
|
-
contour?: string
|
|
280
|
-
envoy?: string
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export type GetImagesReq = {
|
|
284
|
-
workspaceId?: string
|
|
285
|
-
clusterName?: string
|
|
286
|
-
namespaceName?: string
|
|
287
|
-
gatewayName?: string
|
|
288
|
-
}
|
|
289
|
-
|
|
290
285
|
export type GetGatewayStatusReq = {
|
|
291
286
|
workspaceId?: string
|
|
292
287
|
clusterName?: string
|
|
@@ -69,7 +69,7 @@ export type GetGatewayRLSRuleRes = {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
export type GatewayPluginConfig = {
|
|
72
|
-
|
|
72
|
+
component?: SkoalaApiGeneralV1alpha1Common.Component
|
|
73
73
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
74
74
|
replicas?: number
|
|
75
75
|
}
|
|
@@ -100,6 +100,9 @@ export type Nacos = {
|
|
|
100
100
|
version?: string
|
|
101
101
|
nodeCount?: number
|
|
102
102
|
healthNodeCount?: number
|
|
103
|
+
serviceCount?: number
|
|
104
|
+
configCount?: number
|
|
105
|
+
insightEnabled?: boolean
|
|
103
106
|
database?: NacosDatabase
|
|
104
107
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
105
108
|
condition?: NacosCondition[]
|
|
@@ -143,6 +146,7 @@ export type UpdateNacosReq = {
|
|
|
143
146
|
clusterName?: string
|
|
144
147
|
nacosName?: string
|
|
145
148
|
namespaceName?: string
|
|
149
|
+
insightEnabled?: boolean
|
|
146
150
|
config?: NacosConfig
|
|
147
151
|
}
|
|
148
152
|
|
|
@@ -152,6 +156,7 @@ export type CreateNacosReq = {
|
|
|
152
156
|
nacosName?: string
|
|
153
157
|
namespaceName?: string
|
|
154
158
|
createNamespace?: boolean
|
|
159
|
+
insightEnabled?: boolean
|
|
155
160
|
config?: NacosConfig
|
|
156
161
|
}
|
|
157
162
|
|
|
@@ -171,7 +176,7 @@ export type RestartNacosReq = {
|
|
|
171
176
|
|
|
172
177
|
export type NacosConfig = {
|
|
173
178
|
type?: NacosConfigType
|
|
174
|
-
|
|
179
|
+
component?: SkoalaApiGeneralV1alpha1Common.Component
|
|
175
180
|
replicas?: number
|
|
176
181
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
177
182
|
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
@@ -92,7 +92,7 @@ export type UpdatePluginReq = {
|
|
|
92
92
|
|
|
93
93
|
export type UpdateSentinelPluginReq = {
|
|
94
94
|
enabled?: boolean
|
|
95
|
-
chart?: SkoalaApiGeneralV1alpha1Common.
|
|
95
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Component
|
|
96
96
|
replicas?: number
|
|
97
97
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
98
98
|
type?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
@@ -386,8 +386,8 @@ export class Gateway {
|
|
|
386
386
|
static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
387
387
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
|
|
388
388
|
}
|
|
389
|
-
static
|
|
390
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.
|
|
389
|
+
static GetWorkingComponents(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
|
|
390
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/components?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
391
391
|
}
|
|
392
392
|
static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
|
|
393
393
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
@@ -395,8 +395,8 @@ export class Gateway {
|
|
|
395
395
|
static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
396
396
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/diagnostic`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
397
397
|
}
|
|
398
|
-
static
|
|
399
|
-
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.
|
|
398
|
+
static GetProvisionedComponents(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
|
|
399
|
+
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/components?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
400
400
|
}
|
|
401
401
|
static ListGatewayPods(req: SkoalaApiHostedV1alpha1Gateway.ListPodsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListPodsRes> {
|
|
402
402
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListPodsReq, SkoalaApiHostedV1alpha1Gateway.ListPodsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pods?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|