Skip to content

Commit

Permalink
fix: lazy loading of config-audit policies (#1958)
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <[email protected]>
  • Loading branch information
chen-keinan committed Mar 28, 2024
1 parent cb49330 commit fa6f596
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,6 @@ func Start(ctx context.Context, buildInfo trivyoperator.BuildInfo, operatorConfi
}

if operatorConfig.ConfigAuditScannerEnabled {
_, err = policyLoader.GetPolicies()
if err != nil {
return fmt.Errorf("unable to load built-in policies: %w", err)
}
setupLog.Info("Enabling built-in configuration audit scanner")
if err = (&controller.ResourceController{
Logger: ctrl.Log.WithName("resourcecontroller"),
Expand Down

0 comments on commit fa6f596

Please sign in to comment.