From 38e2fbf7f9a26a293b0c7e65f29932bca7b34871 Mon Sep 17 00:00:00 2001 From: Katrin Leinweber <9948149+katrinleinweber@users.noreply.github.com> Date: Mon, 6 May 2024 10:26:37 +0200 Subject: [PATCH] docs: link warning to both timeout config options (#6620) --- 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 af8afb36f8..708d9314f9 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 d6a61018fe..14aae3659c 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 3516f1afc8..7c34bb4feb 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()