diff options
| author | pablos <pablos44@gmail.com> | 2023-05-29 15:00:47 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-29 15:00:47 +0300 |
| commit | e92919ce1b402e024933528f99e4c13b065f19fa (patch) | |
| tree | b697426c6338e807a4500089dd6e5501f68eb9bb /robusta_krr | |
| parent | 2389c0f5bc3b959a95d507cb49503f972d37ae2e (diff) | |
| parent | 2b0c4e938e3d967b0c21782fa39e4dd7b4084cec (diff) | |
Merge pull request #51 from robusta-dev/ci-cd-pipelines
CI/CD pipelines
Diffstat (limited to 'robusta_krr')
| -rw-r--r-- | robusta_krr/api/models.py | 6 | ||||
| -rw-r--r-- | robusta_krr/core/models/objects.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/robusta_krr/api/models.py b/robusta_krr/api/models.py index be2a3ad..a0c4ea9 100644 --- a/robusta_krr/api/models.py +++ b/robusta_krr/api/models.py @@ -1,6 +1,6 @@ -from robusta_krr.core.abstract.strategies import HistoryData, ResourceRecommendation, RunResult +from robusta_krr.core.abstract.strategies import HistoryData, ResourceHistoryData, ResourceRecommendation, RunResult from robusta_krr.core.models.allocations import RecommendationValue, ResourceAllocations, ResourceType -from robusta_krr.core.models.objects import K8sObjectData +from robusta_krr.core.models.objects import K8sObjectData, PodData from robusta_krr.core.models.result import ResourceScan, Result, Severity __all__ = [ @@ -8,10 +8,12 @@ __all__ = [ "ResourceAllocations", "RecommendationValue", "K8sObjectData", + "PodData", "Result", "Severity", "ResourceScan", "ResourceRecommendation", "HistoryData", + "ResourceHistoryData", "RunResult", ] diff --git a/robusta_krr/core/models/objects.py b/robusta_krr/core/models/objects.py index 21f5d61..84e468e 100644 --- a/robusta_krr/core/models/objects.py +++ b/robusta_krr/core/models/objects.py @@ -1,5 +1,3 @@ -from typing import Optional - import pydantic as pd from robusta_krr.core.models.allocations import ResourceAllocations @@ -14,12 +12,12 @@ class PodData(pd.BaseModel): class K8sObjectData(pd.BaseModel): - cluster: Optional[str] + cluster: str name: str container: str pods: list[PodData] namespace: str - kind: Optional[str] + kind: str allocations: ResourceAllocations def __str__(self) -> str: |
