Skip to content

Commit

Permalink
Add warning when cannot show all the violations
Browse files Browse the repository at this point in the history
  • Loading branch information
ralgozino committed Nov 6, 2020
1 parent 143c0c2 commit dec81ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions app/templates/constraints.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@
{% endfor %}
</tbody>
</table>
{% if constraint.status.totalViolations > constraint.status.violations|length %}
<div class="ui warning small icon message">
<i class="exclamation triangle icon"></i>
<div class="content">
<div class="header">Not all violations are being shown</div>
Gatekeeper's configuration is limiting the audit violations per constraint to {{constraint.status.violations|length}}. See Gatekeeper's <span style="font-family: monospace">--constraint-violations-limit</span> audit configuration flag.
</div>
</div>
{% endif %}
</div>
{% elif constraint.status.totalViolations is not defined %}
<div class="ui segment"><i class="ui grey icon circle question"></i> Violations for this Constraint are unkown. This probably means that the Constraint has not been processed by Gatekeeper yet. Please, try refreshing the page.</div>
Expand Down
6 changes: 5 additions & 1 deletion docs/releases/v0.4.1.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit dec81ce

Please sign in to comment.