Skip to content

Commit

Permalink
feat: add info msg to disable node-collector scanning
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <hen.keinan@gmail.com>
  • Loading branch information
chen-keinan committed Apr 15, 2024
1 parent c082095 commit 7e8c80d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/k8s/commands/cluster.go
Expand Up @@ -55,6 +55,10 @@ func clusterRun(ctx context.Context, opts flag.Options, cluster k8s.Cluster) err
return xerrors.Errorf(`unknown format %q. Use "json" or "table" or "cyclonedx"`, opts.Format)
}

if !opts.NonIntrusive && !opts.Quiet {
log.Logger.Info("Node scanning is enabled")
log.Logger.Info("If you want to disable Node scanning via an in-cluster Job, please try '--non-intrusive' to disable the Node-Collector job.")
}
runner := newRunner(opts, cluster.GetCurrentContext())
return runner.run(ctx, artifacts)
}

0 comments on commit 7e8c80d

Please sign in to comment.