Skip to content

Commit

Permalink
[ACM-16286]: Ensure hub and spoke obsaddon are synced based on spec
Browse files Browse the repository at this point in the history
Signed-off-by: Saswata Mukherjee <[email protected]>
  • Loading branch information
saswatamcode committed Dec 10, 2024
1 parent 607bb06 commit 5ed10c5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,9 @@ func (r *PlacementRuleReconciler) SetupWithManager(mgr ctrl.Manager) error {
e.ObjectNew.GetLabels()[ownerLabelKey] == ownerLabelValue &&
e.ObjectNew.GetNamespace() != localClusterName &&
!reflect.DeepEqual(e.ObjectNew.(*mcov1beta1.ObservabilityAddon).Status.Conditions,
e.ObjectOld.(*mcov1beta1.ObservabilityAddon).Status.Conditions) {
e.ObjectOld.(*mcov1beta1.ObservabilityAddon).Status.Conditions) &&
!reflect.DeepEqual(e.ObjectNew.(*mcov1beta1.ObservabilityAddon).Spec,
e.ObjectOld.(*mcov1beta1.ObservabilityAddon).Spec) {
return true
}
return false
Expand Down

0 comments on commit 5ed10c5

Please sign in to comment.