Skip to content

Commit

Permalink
fix Argo Rollout CR wrong annotation type (#377)
Browse files Browse the repository at this point in the history
fix labels for custom custom resources
  • Loading branch information
Miracle05 authored Dec 19, 2024
1 parent 5a0c464 commit 4c657aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion robusta_krr/core/integrations/kubernetes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4c657aa

Please sign in to comment.