From b344475c023f11471e7e37f07c65827a0c333d7c Mon Sep 17 00:00:00 2001 From: Katrin Leinweber <9948149+katrinleinweber@users.noreply.github.com> Date: Fri, 3 May 2024 12:56:09 +0200 Subject: [PATCH] docs: link warning to both timeout config options --- pkg/cloud/aws/commands/run.go | 2 +- pkg/commands/artifact/run.go | 2 +- pkg/k8s/commands/run.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cloud/aws/commands/run.go b/pkg/cloud/aws/commands/run.go index af8afb36f8d..708d9314f94 100644 --- a/pkg/cloud/aws/commands/run.go +++ b/pkg/cloud/aws/commands/run.go @@ -140,7 +140,7 @@ func Run(ctx context.Context, opt flag.Options) error { var err error defer func() { 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/") } }() diff --git a/pkg/commands/artifact/run.go b/pkg/commands/artifact/run.go index a1fde23d519..ef23db03957 100644 --- a/pkg/commands/artifact/run.go +++ b/pkg/commands/artifact/run.go @@ -397,7 +397,7 @@ func Run(ctx context.Context, opts flag.Options, targetKind TargetKind) (err err defer func() { 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/") } }() diff --git a/pkg/k8s/commands/run.go b/pkg/k8s/commands/run.go index 3516f1afc8e..7c34bb4feb2 100644 --- a/pkg/k8s/commands/run.go +++ b/pkg/k8s/commands/run.go @@ -39,7 +39,7 @@ func Run(ctx context.Context, args []string, opts flag.Options) error { defer func() { cancel() 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()