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:
Aleksandr Melnikov
2020-04-02 11:30:39 -07:00
parent 9e029b3f1c
commit a42e7ab7fe
5 changed files with 241 additions and 84 deletions

View File

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