@daocloud-proto/skoala 0.47.1 → 0.48.0-12
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.
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
8
|
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
9
|
+
import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
|
|
9
10
|
import * as SkoalaApiHostedV1alpha3Common from "./common.pb"
|
|
10
11
|
|
|
11
12
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
@@ -33,6 +34,18 @@ export enum EnvoyLogLevel {
|
|
|
33
34
|
off = "off",
|
|
34
35
|
}
|
|
35
36
|
|
|
37
|
+
export enum HelmStatus {
|
|
38
|
+
STATUS_UNKNOWN = "STATUS_UNKNOWN",
|
|
39
|
+
STATUS_DEPLOYED = "STATUS_DEPLOYED",
|
|
40
|
+
STATUS_UNINSTALLED = "STATUS_UNINSTALLED",
|
|
41
|
+
STATUS_SUPERSEDED = "STATUS_SUPERSEDED",
|
|
42
|
+
STATUS_FAILED = "STATUS_FAILED",
|
|
43
|
+
STATUS_UNINSTALLING = "STATUS_UNINSTALLING",
|
|
44
|
+
STATUS_PENDING_INSTALL = "STATUS_PENDING_INSTALL",
|
|
45
|
+
STATUS_PENDING_UPGRADE = "STATUS_PENDING_UPGRADE",
|
|
46
|
+
STATUS_PENDING_ROLLBACK = "STATUS_PENDING_ROLLBACK",
|
|
47
|
+
}
|
|
48
|
+
|
|
36
49
|
export enum GatewayStatus {
|
|
37
50
|
GATEWAY_STATUS_UNSPECIFIED = "GATEWAY_STATUS_UNSPECIFIED",
|
|
38
51
|
Unknown = "Unknown",
|
|
@@ -41,13 +54,6 @@ export enum GatewayStatus {
|
|
|
41
54
|
Running = "Running",
|
|
42
55
|
}
|
|
43
56
|
|
|
44
|
-
export enum CommonServiceConfigServiceType {
|
|
45
|
-
ServiceType_UNSPECIFIED = "ServiceType_UNSPECIFIED",
|
|
46
|
-
ServiceType_NODE_PORT = "ServiceType_NODE_PORT",
|
|
47
|
-
ServiceType_LOAD_BALANCER = "ServiceType_LOAD_BALANCER",
|
|
48
|
-
ServiceType_CLUSTER_IP = "ServiceType_CLUSTER_IP",
|
|
49
|
-
}
|
|
50
|
-
|
|
51
57
|
export type CreateAIGatewayReq = {
|
|
52
58
|
workspaceId?: string
|
|
53
59
|
gatewayName?: string
|
|
@@ -165,13 +171,15 @@ export type CommonServiceConfigServicePort = {
|
|
|
165
171
|
}
|
|
166
172
|
|
|
167
173
|
export type CommonServiceConfig = {
|
|
168
|
-
serviceType?:
|
|
174
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
169
175
|
servicePorts?: CommonServiceConfigServicePort[]
|
|
170
176
|
annotations?: {[key: string]: string}
|
|
171
177
|
loadBalancerIp?: string
|
|
172
178
|
loadBalancerClass?: string
|
|
173
179
|
loadBalancerSourceRanges?: string[]
|
|
174
|
-
externalTrafficPolicy?:
|
|
180
|
+
externalTrafficPolicy?: SkoalaApiGeneralV1alpha1Common.ExternalTrafficPolicy
|
|
181
|
+
lbType?: SkoalaApiGeneralV1alpha1Common.LBType
|
|
182
|
+
addrPoolName?: string
|
|
175
183
|
}
|
|
176
184
|
|
|
177
185
|
export type EnvoyLog = {
|
|
@@ -240,6 +248,8 @@ export type AIGateway = {
|
|
|
240
248
|
worker?: Node
|
|
241
249
|
clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
|
|
242
250
|
consoleUrl?: string
|
|
251
|
+
status?: HelmStatus
|
|
252
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
243
253
|
}
|
|
244
254
|
|
|
245
255
|
export type GatewayCondition = {
|
|
@@ -268,4 +278,15 @@ export type GetAIGatewayReq = {
|
|
|
268
278
|
|
|
269
279
|
export type GetAIGatewayRes = {
|
|
270
280
|
gateway?: AIGateway
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export type GetAIGatewayConfigReq = {
|
|
284
|
+
workspaceId?: string
|
|
285
|
+
clusterName?: string
|
|
286
|
+
namespaceName?: string
|
|
287
|
+
gatewayName?: string
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export type GetAIGatewayConfigRes = {
|
|
291
|
+
config?: AIGatewayConfig
|
|
271
292
|
}
|
|
@@ -24,6 +24,9 @@ export class AIGateway {
|
|
|
24
24
|
static GetAIGateway(req: SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayRes> {
|
|
25
25
|
return fm.fetchReq<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayReq, SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayRes>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/aigateways/${req["gatewayName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
26
26
|
}
|
|
27
|
+
static GetAIGatewayConfig(req: SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayConfigRes> {
|
|
28
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayConfigReq, SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayConfigRes>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/aigateways/${req["gatewayName"]}/config?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
29
|
+
}
|
|
27
30
|
}
|
|
28
31
|
export class Skoala {
|
|
29
32
|
static ListGatewayNamespaces(req: SkoalaApiHostedV1alpha3Skoala.ListNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListNamespaceRes> {
|