Skip to content

Commit

Permalink
adding warning for emit-audit-events when set to true
Browse files Browse the repository at this point in the history
Signed-off-by: Jaydip Gabani <[email protected]>
  • Loading branch information
JaydipGabani committed Jan 13, 2025
1 parent ac329bc commit e564324
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/audit/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,7 @@ func (am *Manager) addAuditResponsesToUpdateLists(
}
}
if *emitAuditEvents {
log.Info("Warning: Alpha flag emit-audit-events is set to true. This flag may change in the future.")
uid := r.obj.GetUID()
rv := r.obj.GetResourceVersion()
emitEvent(constraint, timestamp, ea, strings.Join(r.ScopedEnforcementActions, ","), gvk, namespace, name, rv, msg, am.gkNamespace, uid, am.eventRecorder)
Expand Down

0 comments on commit e564324

Please sign in to comment.