From 4c657aa9d1bae2a1d908959e177ca8841df406d8 Mon Sep 17 00:00:00 2001 From: Dmitrii G <48566349+Miracle05@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:00:49 +0700 Subject: [PATCH] fix Argo Rollout CR wrong annotation type (#377) fix labels for custom custom resources --- robusta_krr/core/integrations/kubernetes/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,