mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-06 06:06:50 +08:00
pod logging
This commit is contained in:
@@ -32,6 +32,12 @@ service WorkflowService {
|
||||
};
|
||||
}
|
||||
|
||||
rpc GetWorkflowLogs (GetWorkflowLogsRequest) returns (stream LogEntry) {
|
||||
option (google.api.http) = {
|
||||
get: "/apis/v1beta1/{namespace}/workflows/{name}/pods/{podName}/log"
|
||||
};
|
||||
}
|
||||
|
||||
rpc CreateWorkflowTemplate (CreateWorkflowTemplateRequest) returns (WorkflowTemplate) {
|
||||
option (google.api.http) = {
|
||||
post: "/apis/v1beta1/{namespace}/workflow_templates"
|
||||
@@ -83,6 +89,13 @@ message WatchWorkflowRequest {
|
||||
string name = 2;
|
||||
}
|
||||
|
||||
message GetWorkflowLogsRequest {
|
||||
string namespace = 1;
|
||||
string name = 2;
|
||||
string podName = 3;
|
||||
string containerName = 4;
|
||||
}
|
||||
|
||||
message ListWorkflowsRequest {
|
||||
string namespace = 1;
|
||||
string workflowTemplateUid = 2;
|
||||
@@ -93,6 +106,10 @@ message ListWorkflowsResponse {
|
||||
repeated Workflow workflows = 2;
|
||||
}
|
||||
|
||||
message LogEntry {
|
||||
string content = 1;
|
||||
}
|
||||
|
||||
message Workflow {
|
||||
string uid = 1;
|
||||
string name = 2;
|
||||
|
Reference in New Issue
Block a user