Skip to content

Commit b372971

Browse files
Bug: Policy compliance status is truncated
Signed-off-by: Yi Rae Kim <[email protected]>
1 parent 8a28764 commit b372971

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

controllers/utils/events.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ func (c *ComplianceEventSender) SendEvent(
3333
compliance policyv1.ComplianceState,
3434
) error {
3535
msg = string(compliance) + "; " + msg
36-
if len([]rune(msg)) > 1024 {
37-
msg = string([]rune(msg)[:1021]) + "..."
38-
}
3936

4037
now := time.Now()
4138

@@ -61,7 +58,6 @@ func (c *ComplianceEventSender) SendEvent(
6158
FirstTimestamp: metav1.NewTime(now),
6259
LastTimestamp: metav1.NewTime(now),
6360
Count: 1,
64-
EventTime: metav1.NewMicroTime(now),
6561
Action: "ComplianceStateUpdate",
6662
ReportingController: c.ControllerName,
6763
ReportingInstance: c.InstanceName,

0 commit comments

Comments
 (0)