mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 23:26:39 -08:00
fix: support trivy k8s-version on k8s sub-command (#4786)
* fix: support trivy k8s-version on k8s sub-command Signed-off-by: chenk <hen.keinan@gmail.com> * fix: support last applied configuration Signed-off-by: chenk <hen.keinan@gmail.com> --------- Signed-off-by: chenk <hen.keinan@gmail.com>
This commit is contained in:
@@ -42,7 +42,7 @@ func Run(ctx context.Context, args []string, opts flag.Options) error {
|
||||
log.Logger.Warn("Increase --timeout value")
|
||||
}
|
||||
}()
|
||||
|
||||
opts.K8sVersion = cluster.GetClusterVersion()
|
||||
switch args[0] {
|
||||
case clusterArtifact:
|
||||
return clusterRun(ctx, opts, cluster)
|
||||
|
||||
Reference in New Issue
Block a user