Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api server): add support for streaming logs from completed analysisruns #3678

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
1,728 changes: 948 additions & 780 deletions api/service/v1alpha1/service.pb.go

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions api/service/v1alpha1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ service KargoService {
rpc GetClusterAnalysisTemplate(GetClusterAnalysisTemplateRequest) returns (GetClusterAnalysisTemplateResponse);
rpc DeleteClusterAnalysisTemplate(DeleteClusterAnalysisTemplateRequest) returns (DeleteClusterAnalysisTemplateResponse);
rpc GetAnalysisRun(GetAnalysisRunRequest) returns (GetAnalysisRunResponse);
rpc GetAnalysisRunLogs(GetAnalysisRunLogsRequest) returns (stream GetAnalysisRunLogsResponse);

/* Event APIs */

Expand Down Expand Up @@ -689,6 +690,17 @@ message GetAnalysisRunResponse {
}
}

message GetAnalysisRunLogsRequest {
string namespace = 1;
string name = 2;
string metric_name = 3;
string container_name = 4;
}

message GetAnalysisRunLogsResponse {
string chunk = 1;
}

message DeleteAnalysisTemplateRequest {
string project = 1;
string name = 2;
Expand Down
30 changes: 30 additions & 0 deletions api/service/v1alpha1/svcv1alpha1connect/service.connect.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading