From 4179e481bf024df2402b00ea1dac91e59742f454 Mon Sep 17 00:00:00 2001 From: chenk Date: Thu, 4 Apr 2024 09:20:53 +0300 Subject: [PATCH] feat: add info msg to disable node-collector scanning Signed-off-by: chenk --- pkg/k8s/commands/cluster.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/k8s/commands/cluster.go b/pkg/k8s/commands/cluster.go index ce3df2dacdca..9d719a3ceb2f 100644 --- a/pkg/k8s/commands/cluster.go +++ b/pkg/k8s/commands/cluster.go @@ -46,6 +46,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) }