{% if constraints|length == 0 %}
There are no Constraint defined
We didn't find any Constraint CRDs defined in the cluster.
{% else %} {% set limited_view = [] %}

GPM - Constraints Violations Report

{% for constraint in constraints %} {% if constraint.status.totalViolations is defined and constraint.status.totalViolations > 0 %} {% if constraint.status.totalViolations > constraint.status.violations|length %} {{ limited_view.append(constraint.metadata.name) or '' }} {% endif %} {% for violation in constraint.status.violations %} {% endfor %} {% elif constraint.status.totalViolations is not defined %}
Violations for Constraint {{constraint.metadata.name}} are unkown. This probably means that the Constraint has not been processed by Gatekeeper yet. Please, try refreshing the page.
{% endif %} {% endfor %}
Constraint Action Kind Namespace Name Message
{{ constraint.metadata.name }} {{ violation.enforcementAction }} {{ violation.kind }} {{ violation.namespace }} {{ violation.name }} {{ violation.message }}
{% if limited_view %}
Not all violations are being shown
Gatekeeper's configuration is limiting the amount of audit violations being shown for Constraints {{ limited_view|join(', ') }}.
See Gatekeeper's --constraint-violations-limit audit configuration flag.
{% endif %}

violations report generated by GPM running at {{ url_for('index', _external=True) }} on {{ timestamp }}

{% endif %}