|
36 | 36 | from robusta.integrations.prometheus.utils import generate_prometheus_config |
37 | 37 | from robusta.utils.parsing import format_event_templated_string |
38 | 38 |
|
39 | | -IMAGE: str = os.getenv("KRR_IMAGE_OVERRIDE", f"{IMAGE_REGISTRY}/krr:v1.24.0") |
| 39 | +IMAGE: str = os.getenv("KRR_IMAGE_OVERRIDE", f"{IMAGE_REGISTRY}/krr:v1.25.1") |
40 | 40 | KRR_MEMORY_LIMIT: str = os.getenv("KRR_MEMORY_LIMIT", "2Gi") |
41 | 41 | KRR_MEMORY_REQUEST: str = os.getenv("KRR_MEMORY_REQUEST", "2Gi") |
42 | 42 | KRR_STRATEGY: str = os.getenv("KRR_STRATEGY", "simple") |
@@ -308,7 +308,7 @@ class ProcessScanParams(ActionParams): |
308 | 308 | scan_type: str |
309 | 309 | result: Any |
310 | 310 | scan_id: str |
311 | | - start_time: datetime |
| 311 | + start_time: str |
312 | 312 |
|
313 | 313 | def _emit_failed_scan_event(event, scan_id, start_time, metadata, reason_msg, exception=None, result=None): |
314 | 314 | if exception: |
@@ -468,7 +468,10 @@ def krr_scan(event: ExecutionBaseEvent, params: KRRParams): |
468 | 468 | publish_scan_args = "" |
469 | 469 | if KRR_PUSH_SCAN: |
470 | 470 | publish_scan_args = f"--publish_scan_url={KRR_PUBLISH_URL} --scan_id={scan_id} --start_time=\"{start_time}\"" |
471 | | - |
| 471 | + if event.named_sinks: |
| 472 | + # Append one flag per sink |
| 473 | + for sink in event.named_sinks: |
| 474 | + publish_scan_args += f' --named_sinks="{sink}"' |
472 | 475 |
|
473 | 476 | python_command = ( |
474 | 477 | f"python krr.py {params.strategy} {publish_scan_args} {args_sanitized} {additional_flags} " |
@@ -537,7 +540,7 @@ def update_state(state: ScanState) -> None: |
537 | 540 | job_name, |
538 | 541 | params.timeout, |
539 | 542 | secret, |
540 | | - custom_annotations=params.custom_annotations, |
| 543 | + custom_annotations=krr_annotations, |
541 | 544 | ttl_seconds_after_finished=43200, |
542 | 545 | delete_job_post_execution=False, |
543 | 546 | process_name=False, |
|
0 commit comments