mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-06 06:06:50 +08:00
Updated List endpoint to take in an optional WorkflowTemplateUID.
- If present, code will try to filter the CronWorkflows by the label "onepanel.io/workflow-template-uid" - If not present, all CronWorkflows are returned as normal.
This commit is contained in:
@@ -32,6 +32,9 @@ service CronWorkflowService {
|
||||
rpc ListCronWorkflows(ListCronWorkflowRequest) returns (ListCronWorkflowsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/apis/v1beta1/{namespace}/cron_workflows"
|
||||
additional_bindings {
|
||||
get: "/apis/v1beta1/{namespace}/cron_workflows/{workflow_template_uid}"
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -66,8 +69,9 @@ message UpdateCronWorkflowRequest {
|
||||
|
||||
message ListCronWorkflowRequest {
|
||||
string namespace = 1;
|
||||
int32 pageSize = 4;
|
||||
int32 page = 5;
|
||||
string workflow_template_uid = 2;
|
||||
int32 pageSize = 3;
|
||||
int32 page = 4;
|
||||
}
|
||||
|
||||
message ListCronWorkflowsResponse {
|
||||
|
Reference in New Issue
Block a user