From dec81cefbce9f50c6fb8eca887f5ab72e457471c Mon Sep 17 00:00:00 2001 From: Ramiro Algozino Date: Fri, 6 Nov 2020 16:36:57 +0100 Subject: [PATCH] Add warning when cannot show all the violations --- app/templates/constraints.html | 9 +++++++++ docs/releases/v0.4.1.md | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/templates/constraints.html b/app/templates/constraints.html index 86b10d31..e07cfd53 100644 --- a/app/templates/constraints.html +++ b/app/templates/constraints.html @@ -56,6 +56,15 @@ {% endfor %} + {% if constraint.status.totalViolations > constraint.status.violations|length %} +
+ +
+
Not all violations are being shown
+ Gatekeeper's configuration is limiting the audit violations per constraint to {{constraint.status.violations|length}}. See Gatekeeper's --constraint-violations-limit audit configuration flag. +
+
+ {% endif %} {% elif constraint.status.totalViolations is not defined %}
Violations for this Constraint are unkown. This probably means that the Constraint has not been processed by Gatekeeper yet. Please, try refreshing the page.
diff --git a/docs/releases/v0.4.1.md b/docs/releases/v0.4.1.md index 7c66afd9..b68b618d 100644 --- a/docs/releases/v0.4.1.md +++ b/docs/releases/v0.4.1.md @@ -1,4 +1,8 @@ -# v0.4.1-rc1 +# v0.4.1-rc2 + +## Changes from v0.4.0-rc1 to v0.4.1-rc2 + +- Add a warning when the amount of violations audits that can be shown is less than the total violations. See #63. ## Changes from v0.4.0 to v0.4.1-rc1