Skip to content

Commit

Permalink
Fix running inside cluster error
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaveMyYard committed May 31, 2023
1 parent e1f08ab commit 21096ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion robusta_krr/core/models/objects.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pydantic as pd

from typing import Optional
from robusta_krr.core.models.allocations import ResourceAllocations


Expand All @@ -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]
Expand Down

0 comments on commit 21096ec

Please sign in to comment.