diff --git a/robusta_krr/core/integrations/kubernetes/__init__.py b/robusta_krr/core/integrations/kubernetes/__init__.py index 1ede340..f63f81b 100644 --- a/robusta_krr/core/integrations/kubernetes/__init__.py +++ b/robusta_krr/core/integrations/kubernetes/__init__.py @@ -207,7 +207,10 @@ def __build_scannable_object( labels = item.metadata.labels if item.metadata.annotations: - annotations = item.metadata.annotations + if type(item.metadata.annotations) is ObjectLikeDict: + annotations = item.metadata.annotations.__dict__ + else: + annotations = item.metadata.annotations obj = K8sObjectData( cluster=self.cluster,