Skip to content

Commit 4c657aa

Browse files
authored
fix Argo Rollout CR wrong annotation type (#377)
fix labels for custom custom resources
1 parent 5a0c464 commit 4c657aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

robusta_krr/core/integrations/kubernetes/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,10 @@ def __build_scannable_object(
207207
labels = item.metadata.labels
208208

209209
if item.metadata.annotations:
210-
annotations = item.metadata.annotations
210+
if type(item.metadata.annotations) is ObjectLikeDict:
211+
annotations = item.metadata.annotations.__dict__
212+
else:
213+
annotations = item.metadata.annotations
211214

212215
obj = K8sObjectData(
213216
cluster=self.cluster,

0 commit comments

Comments
 (0)