From e0de54f30da35ec82f55e38a1218db54ef968e57 Mon Sep 17 00:00:00 2001 From: Elie Date: Tue, 22 Jun 2021 14:52:47 +0200 Subject: [PATCH] Add limitation link in computed field alert --- pkg/analyser/analyzer.go | 2 +- pkg/cmd/scan/output/testdata/output_computed_fields.json | 2 +- pkg/cmd/scan/output/testdata/output_computed_fields.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/analyser/analyzer.go b/pkg/analyser/analyzer.go index 79c71b1d..15c37df2 100644 --- a/pkg/analyser/analyzer.go +++ b/pkg/analyser/analyzer.go @@ -29,7 +29,7 @@ func NewComputedDiffAlert() *ComputedDiffAlert { } func (c *ComputedDiffAlert) Message() string { - return "You have diffs on computed fields, check the documentation for potential false positive drifts" + return "You have diffs on computed fields, check the documentation for potential false positive drifts: https://docs.driftctl.com/limitations" } func (c *ComputedDiffAlert) ShouldIgnoreResource() bool { diff --git a/pkg/cmd/scan/output/testdata/output_computed_fields.json b/pkg/cmd/scan/output/testdata/output_computed_fields.json index 8f8f88f2..27c04921 100644 --- a/pkg/cmd/scan/output/testdata/output_computed_fields.json +++ b/pkg/cmd/scan/output/testdata/output_computed_fields.json @@ -80,7 +80,7 @@ "alerts": { "": [ { - "message": "You have diffs on computed fields, check the documentation for potential false positive drifts" + "message": "You have diffs on computed fields, check the documentation for potential false positive drifts: https://docs.driftctl.com/limitations" } ] } diff --git a/pkg/cmd/scan/output/testdata/output_computed_fields.txt b/pkg/cmd/scan/output/testdata/output_computed_fields.txt index 458b8e4e..700c48bd 100644 --- a/pkg/cmd/scan/output/testdata/output_computed_fields.txt +++ b/pkg/cmd/scan/output/testdata/output_computed_fields.txt @@ -11,4 +11,4 @@ Found 1 resource(s) - 0 not covered by IaC - 0 missing on cloud provider - 1/1 changed outside of IaC -You have diffs on computed fields, check the documentation for potential false positive drifts +You have diffs on computed fields, check the documentation for potential false positive drifts: https://docs.driftctl.com/limitations