mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
feat(k8s): add node info resource (#3482)
Signed-off-by: chenk <hen.keinan@gmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@ func clusterRun(ctx context.Context, opts flag.Options, cluster k8s.Cluster) err
|
||||
return err
|
||||
}
|
||||
|
||||
artifacts, err := trivyk8s.New(cluster, log.Logger).ListArtifacts(ctx)
|
||||
artifacts, err := trivyk8s.New(cluster, log.Logger).ListArtifactAndNodeInfo(ctx)
|
||||
if err != nil {
|
||||
return xerrors.Errorf("get k8s artifacts error: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user