mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 23:26:39 -08:00
docs: link warning to both timeout config options (#6620)
This commit is contained in:
@@ -140,7 +140,7 @@ func Run(ctx context.Context, opt flag.Options) error {
|
|||||||
var err error
|
var err error
|
||||||
defer func() {
|
defer func() {
|
||||||
if errors.Is(err, context.DeadlineExceeded) {
|
if errors.Is(err, context.DeadlineExceeded) {
|
||||||
log.Warn("Increase --timeout value")
|
log.Warn("Provide a higher timeout value, see https://aquasecurity.github.io/trivy/latest/docs/configuration/")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
@@ -397,7 +397,7 @@ func Run(ctx context.Context, opts flag.Options, targetKind TargetKind) (err err
|
|||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
if errors.Is(err, context.DeadlineExceeded) {
|
if errors.Is(err, context.DeadlineExceeded) {
|
||||||
log.Warn("Increase --timeout value")
|
log.Warn("Provide a higher timeout value, see https://aquasecurity.github.io/trivy/latest/docs/configuration/")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ func Run(ctx context.Context, args []string, opts flag.Options) error {
|
|||||||
defer func() {
|
defer func() {
|
||||||
cancel()
|
cancel()
|
||||||
if errors.Is(err, context.DeadlineExceeded) {
|
if errors.Is(err, context.DeadlineExceeded) {
|
||||||
log.WarnContext(ctx, "Increase --timeout value")
|
log.WarnContext(ctx, "Provide a higher timeout value, see https://aquasecurity.github.io/trivy/latest/docs/configuration/")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
opts.K8sVersion = cluster.GetClusterVersion()
|
opts.K8sVersion = cluster.GetClusterVersion()
|
||||||
|
|||||||
Reference in New Issue
Block a user