diff --git a/robusta_krr/core/models/objects.py b/robusta_krr/core/models/objects.py index 84e468e4..72694fdf 100644 --- a/robusta_krr/core/models/objects.py +++ b/robusta_krr/core/models/objects.py @@ -1,5 +1,6 @@ import pydantic as pd +from typing import Optional from robusta_krr.core.models.allocations import ResourceAllocations @@ -12,7 +13,8 @@ def __hash__(self) -> int: class K8sObjectData(pd.BaseModel): - cluster: str + # NOTE: Here None means that we are running inside the cluster + cluster: Optional[str] name: str container: str pods: list[PodData]