Skip to content

Commit

Permalink
Bug: Policy compliance status is truncated
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Rae Kim <[email protected]>
  • Loading branch information
yiraeChristineKim authored and openshift-merge-robot committed May 2, 2023
1 parent 8a28764 commit b372971
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions controllers/utils/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ func (c *ComplianceEventSender) SendEvent(
compliance policyv1.ComplianceState,
) error {
msg = string(compliance) + "; " + msg
if len([]rune(msg)) > 1024 {
msg = string([]rune(msg)[:1021]) + "..."
}

now := time.Now()

Expand All @@ -61,7 +58,6 @@ func (c *ComplianceEventSender) SendEvent(
FirstTimestamp: metav1.NewTime(now),
LastTimestamp: metav1.NewTime(now),
Count: 1,
EventTime: metav1.NewMicroTime(now),
Action: "ComplianceStateUpdate",
ReportingController: c.ControllerName,
ReportingInstance: c.InstanceName,
Expand Down

0 comments on commit b372971

Please sign in to comment.