Skip to content

Commit

Permalink
Add warnings from KRR 1.7 (robusta-dev#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaveMyYard authored and pavangudiwada committed Nov 6, 2023
1 parent 4228417 commit f4871ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playbooks/robusta_playbooks/krr.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class KRRObject(BaseModel):
namespace: str
kind: str
allocations: Dict[str, Dict[str, Optional[float]]]
warnings: List[str] = []


class KRRRecommendedInfo(BaseModel):
Expand Down Expand Up @@ -388,6 +389,7 @@ def krr_scan(event: ExecutionBaseEvent, params: KRRParams):
"metric": scan.metrics.get(resource).dict() if scan.metrics.get(resource) else {},
"description": krr_scan.description,
"strategy": krr_scan.strategy.dict() if krr_scan.strategy else None,
"warnings": scan.object.warnings,
}
for resource in krr_scan.resources
],
Expand Down

0 comments on commit f4871ac

Please sign in to comment.