Skip to content

Commit

Permalink
Add temporal debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
fhielpos committed Nov 13, 2023
1 parent d930a13 commit c0ca773
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/controller/policyreport_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func (r *PolicyReportReconciler) Reconcile(ctx context.Context, req ctrl.Request
for _, namespace := range r.ExcludeNamespaces {
if namespace == policyReport.Namespace {
// Namespace is excluded, ignore
log.Log.Info(fmt.Sprintf("Namespace %s is excluded, report will be ignored", namespace))
return reconcile.Result{}, nil
}
}
Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package main

import (
"flag"
"fmt"
"os"
"strings"

Expand Down Expand Up @@ -159,6 +160,7 @@ func main() {
setupLog.Error(err, "unable to set up ready check")
os.Exit(1)
}
setupLog.Info(fmt.Sprintf("Excluded namespaces: %s", excludeNamespaces))

setupLog.Info("starting manager")
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
Expand Down

0 comments on commit c0ca773

Please sign in to comment.