Skip to content

Commit

Permalink
_api_resource hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaveMyYard committed Oct 23, 2023
1 parent 0f16f93 commit bb2e5c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions robusta_krr/core/integrations/kubernetes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,17 @@ def __build_obj(
namespace = item.metadata.namespace
kind = kind or item.__class__.__name__[2:]

return K8sObjectData(
obj = K8sObjectData(
cluster=self.cluster,
namespace=namespace,
name=name,
kind=kind,
container=container.name,
allocations=ResourceAllocations.from_container(container),
hpa=self.__hpa_list.get((namespace, kind, name)),
api_resource=item,
)
obj._api_resource = item
return obj

def _should_list_resource(self, resource: str):
if settings.resources == "*":
Expand Down

0 comments on commit bb2e5c6

Please # to comment.