Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 0 additions & 84 deletions docs/openapi/gateway.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -996,29 +996,6 @@
}
}
},
"gatewayAttachToContainerRequest": {
"type": "object",
"properties": {
"containerId": {
"type": "string"
}
}
},
"gatewayAttachToContainerResponse": {
"type": "object",
"properties": {
"output": {
"type": "string"
},
"done": {
"type": "boolean"
},
"exitCode": {
"type": "integer",
"format": "int32"
}
}
},
"gatewayAuthorizeResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1056,20 +1033,6 @@
}
}
},
"gatewayCheckpointContainerResponse": {
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"checkpointId": {
"type": "string"
},
"errorMsg": {
"type": "string"
}
}
},
"gatewayCordonWorkerResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1837,20 +1800,6 @@
}
}
},
"gatewayPutObjectResponse": {
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"objectId": {
"type": "string"
},
"errorMsg": {
"type": "string"
}
}
},
"gatewayScaleDeploymentResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2005,39 +1954,6 @@
}
}
},
"gatewaySyncContainerWorkspaceOperation": {
"type": "string",
"enum": [
"WRITE",
"DELETE",
"MOVED"
],
"default": "WRITE"
},
"gatewaySyncContainerWorkspaceRequest": {
"type": "object",
"properties": {
"containerId": {
"type": "string"
},
"path": {
"type": "string"
},
"newPath": {
"type": "string"
},
"isDir": {
"type": "boolean"
},
"data": {
"type": "string",
"format": "byte"
},
"op": {
"$ref": "#/definitions/gatewaySyncContainerWorkspaceOperation"
}
}
},
"gatewayTask": {
"type": "object",
"properties": {
Expand Down
94 changes: 94 additions & 0 deletions docs/openapi/pod.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,46 @@
"PodService"
]
}
},
"/pods/{stubId}/events": {
"get": {
"operationId": "PodService_SandboxListEvents",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/podPodSandboxListEventsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "stubId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "searchAfter",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [
"PodService"
]
}
}
},
"definitions": {
Expand Down Expand Up @@ -1103,6 +1143,36 @@
}
}
},
"podPodSandboxEvent": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"time": {
"type": "string"
},
"type": {
"type": "string"
},
"status": {
"type": "string"
},
"containerId": {
"type": "string"
},
"workerId": {
"type": "string"
},
"stubId": {
"type": "string"
},
"exitCode": {
"type": "integer",
"format": "int32"
}
}
},
"podPodSandboxExecResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1194,6 +1264,30 @@
}
}
},
"podPodSandboxListEventsResponse": {
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"errorMsg": {
"type": "string"
},
"events": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/podPodSandboxEvent"
}
},
"nextCursor": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"podPodSandboxListFilesResponse": {
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ valuesInline:
regex: true
- source_labels: [__meta_kubernetes_pod_container_port_number]
action: keep
regex: 9090
regex: (9090|8112)
---
apiVersion: builtin
kind: HelmChartInflationGenerator
Expand Down
29 changes: 29 additions & 0 deletions pkg/abstractions/pod/pod.proto
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ service PodService {
get : "/pods/{container_id}/urls"
};
}
rpc SandboxListEvents(PodSandboxListEventsRequest)
returns (PodSandboxListEventsResponse) {
option (google.api.http) = {
get : "/pods/{stub_id}/events"
};
}
}

message CreatePodRequest {
Expand Down Expand Up @@ -418,4 +424,27 @@ message PodSandboxListUrlsResponse {
bool ok = 1;
map<int32, string> urls = 2;
string error_msg = 3;
}

message PodSandboxListEventsRequest {
string stub_id = 1;
repeated string search_after = 2;
}

message PodSandboxListEventsResponse {
bool ok = 1;
string error_msg = 2;
repeated PodSandboxEvent events = 3;
repeated string next_cursor = 4;
}

message PodSandboxEvent {
string id = 1;
string time = 2;
string type = 3;
string status = 4;
string container_id = 5;
string worker_id = 6;
string stub_id = 7;
int32 exit_code = 8;
}
Loading
Loading