pod logging

This commit is contained in:
rushtehrani
2020-01-09 15:08:25 -08:00
parent 32442b5b04
commit d124e587c1
8 changed files with 461 additions and 47 deletions

View File

@@ -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;