Skip to content

Commit bdfcc19

Browse files
haojingcnafdesk
andauthored
chore(k8s): enhance k8s scan log (#6997)
Co-authored-by: afdesk <[email protected]>
1 parent 611558e commit bdfcc19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/k8s/commands/run.go

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func (r *runner) run(ctx context.Context, artifacts []*k8sArtifacts.Artifact) er
8686
r.flagOpts.ScanOptions.Scanners = scanners
8787
}
8888
var rpt report.Report
89+
log.Info("Scanning K8s...", log.String("K8s", r.cluster))
8990
rpt, err = s.Scan(ctx, artifacts)
9091
if err != nil {
9192
return xerrors.Errorf("k8s scan error: %w", err)

0 commit comments

Comments
 (0)