Skip to content

Commit 4e15ac1

Browse files
clyang82openshift-merge-robot
authored andcommitted
Update event to include real status
Signed-off-by: clyang82 <chuyang@redhat.com>
1 parent 3d0d9d3 commit 4e15ac1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/statussync/policy_status_sync.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ func (r *PolicyReconciler) Reconcile(ctx context.Context, request reconcile.Requ
418418
}
419419

420420
r.HubRecorder.Event(hubPlc, "Normal", "PolicyStatusSync",
421-
fmt.Sprintf("Policy %s status was updated in cluster namespace %s", hubPlc.GetName(),
422-
hubPlc.GetNamespace()))
421+
fmt.Sprintf("Policy %s status was updated to %s in cluster namespace %s", hubPlc.GetName(),
422+
hubPlc.Status.ComplianceState, hubPlc.GetNamespace()))
423423
} else {
424424
reqLogger.Info("status match on hub, nothing to update")
425425
}

0 commit comments

Comments
 (0)