Skip to content

Commit

Permalink
Add resource limits to KRR reports (robusta-dev#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertSzefler authored and pavangudiwada committed May 30, 2024
1 parent ae35ba3 commit 941389c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions playbooks/robusta_playbooks/krr.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ def _pdf_scan_row_content_format(row: ScanReportRow) -> str:
f"{entry['resource'].upper()} Request: "
+ f"{format_krr_value(entry['allocated']['request'])} -> "
+ f"{format_krr_value(entry['recommended']['request'])} "
+ f"\n{entry['resource'].upper()} Limit: "
+ f"{format_krr_value(entry['allocated']['limit'])} -> "
+ f"{format_krr_value(entry['recommended']['limit'])} "
+ f"({priority_to_krr_severity(entry['priority']['request'])})"
for entry in row.content
)
Expand Down

0 comments on commit 941389c

Please sign in to comment.