@daocloud-proto/kpanda 0.47.0-dev-eb94f194 → 0.47.0-dev-0716af78
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/kpanda.io/api/gateway/v1alpha1/common.pb.ts +13 -0
- package/kpanda.io/api/gateway/v1alpha1/grpcroute.pb.ts +1 -0
- package/kpanda.io/api/gateway/v1alpha1/httproute.pb.ts +1 -0
- package/kpanda.io/api/gateway/v1alpha1/route.pb.ts +2 -13
- package/kpanda.io/api/v1alpha1/kpanda.pb.ts +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,19 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
|
+
|
|
9
|
+
export enum GatewayRouteStatus {
|
|
10
|
+
ROUTE_STATUS_UNSPECIFIED = "ROUTE_STATUS_UNSPECIFIED",
|
|
11
|
+
ROUTE_STATUS_PENDING = "ROUTE_STATUS_PENDING",
|
|
12
|
+
ROUTE_STATUS_ACCEPTED = "ROUTE_STATUS_ACCEPTED",
|
|
13
|
+
ROUTE_STATUS_PROGRAMMED = "ROUTE_STATUS_PROGRAMMED",
|
|
14
|
+
ROUTE_STATUS_REF_NOT_RESOLVED = "ROUTE_STATUS_REF_NOT_RESOLVED",
|
|
15
|
+
ROUTE_STATUS_ACCESS_DENIED = "ROUTE_STATUS_ACCESS_DENIED",
|
|
16
|
+
ROUTE_STATUS_CONFLICT = "ROUTE_STATUS_CONFLICT",
|
|
17
|
+
ROUTE_STATUS_UNSUPPORTED = "ROUTE_STATUS_UNSUPPORTED",
|
|
18
|
+
ROUTE_STATUS_INVALID_SPEC = "ROUTE_STATUS_INVALID_SPEC",
|
|
19
|
+
}
|
|
20
|
+
|
|
8
21
|
export type ParentReference = {
|
|
9
22
|
group?: string
|
|
10
23
|
kind?: string
|
|
@@ -24,18 +24,6 @@ export enum GatewayRouteType {
|
|
|
24
24
|
GATEWAY_ROUTE_TYPE_GRPC = "GATEWAY_ROUTE_TYPE_GRPC",
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export enum GatewayRouteStatus {
|
|
28
|
-
ROUTE_STATUS_UNSPECIFIED = "ROUTE_STATUS_UNSPECIFIED",
|
|
29
|
-
ROUTE_STATUS_PENDING = "ROUTE_STATUS_PENDING",
|
|
30
|
-
ROUTE_STATUS_ACCEPTED = "ROUTE_STATUS_ACCEPTED",
|
|
31
|
-
ROUTE_STATUS_PROGRAMMED = "ROUTE_STATUS_PROGRAMMED",
|
|
32
|
-
ROUTE_STATUS_REF_NOT_RESOLVED = "ROUTE_STATUS_REF_NOT_RESOLVED",
|
|
33
|
-
ROUTE_STATUS_ACCESS_DENIED = "ROUTE_STATUS_ACCESS_DENIED",
|
|
34
|
-
ROUTE_STATUS_CONFLICT = "ROUTE_STATUS_CONFLICT",
|
|
35
|
-
ROUTE_STATUS_UNSUPPORTED = "ROUTE_STATUS_UNSUPPORTED",
|
|
36
|
-
ROUTE_STATUS_INVALID_SPEC = "ROUTE_STATUS_INVALID_SPEC",
|
|
37
|
-
}
|
|
38
|
-
|
|
39
27
|
export type ListClusterRoutesRequest = {
|
|
40
28
|
cluster?: string
|
|
41
29
|
routeType?: GatewayRouteType
|
|
@@ -56,12 +44,13 @@ export type ListClusterRoutesResponse = {
|
|
|
56
44
|
|
|
57
45
|
export type Routes = {
|
|
58
46
|
name?: string
|
|
47
|
+
cluster?: string
|
|
59
48
|
namespace?: string
|
|
60
49
|
routeType?: GatewayRouteType
|
|
61
50
|
parentRefs?: KpandaIoApiGatewayV1alpha1Common.ParentReference[]
|
|
62
51
|
hostnames?: string[]
|
|
63
52
|
backendRefs?: KpandaIoApiGatewayV1alpha1Common.BackendRef[]
|
|
64
|
-
status?: GatewayRouteStatus
|
|
53
|
+
status?: KpandaIoApiGatewayV1alpha1Common.GatewayRouteStatus
|
|
65
54
|
creationTimestamp?: string
|
|
66
55
|
}
|
|
67
56
|
|
|
@@ -1248,6 +1248,6 @@ export class Gateway {
|
|
|
1248
1248
|
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Route.UpdateRouteRequest, KpandaIoApiGatewayV1alpha1Route.UpdateRouteResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/routes/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
1249
1249
|
}
|
|
1250
1250
|
static DeleteRoute(req: KpandaIoApiGatewayV1alpha1Route.DeleteRouteRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
1251
|
-
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Route.DeleteRouteRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/routes/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
1251
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Route.DeleteRouteRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/routes/${req["name"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|