Skip to content

Commit 4179e48

Browse files
committed
feat: add info msg to disable node-collector scanning
Signed-off-by: chenk <[email protected]>
1 parent 1d05c33 commit 4179e48

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/k8s/commands/cluster.go

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ func clusterRun(ctx context.Context, opts flag.Options, cluster k8s.Cluster) err
4646
return xerrors.Errorf(`unknown format %q. Use "json" or "table" or "cyclonedx"`, opts.Format)
4747
}
4848

49+
if !opts.NonIntrusive && !opts.Quiet {
50+
log.Logger.Info("Node scanning is enabled")
51+
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.")
52+
}
4953
runner := newRunner(opts, cluster.GetCurrentContext())
5054
return runner.run(ctx, artifacts)
5155
}

0 commit comments

Comments
 (0)