Skip to content

Commit

Permalink
use generic slices and map to compare finalizers and annotations
Browse files Browse the repository at this point in the history
Signed-off-by: David Adelowo <[email protected]>
  • Loading branch information
amotolani committed Jun 6, 2024
1 parent 0e2c8e2 commit 3e133ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/applications/comp.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ func IsApplicationUpToDate(cr *v1alpha1.ApplicationParameters, remote *argocdv1a
slices.Sort(remote.Finalizers)

return cmp.Equal(*cluster, remote.Spec, opts...) && maps.Equal(cr.Annotations, remote.Annotations) && slices.Equal(cr.Finalizers, remote.Finalizers)
}
}

0 comments on commit 3e133ad

Please sign in to comment.