# Class PolicyController (1.25.0)

1.25.0 (latest) 1.24.0 1.23.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.3 1.16.0 1.15.1 1.14.2 1.13.1 1.12.1 1.11.0 1.10.2 1.9.0 1.8.1 1.7.1 1.6.0 1.5.3 1.4.3 1.3.0 1.2.0 1.1.0 1.0.0 0.2.2 0.1.2

    PolicyController(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Configuration for Policy Controller

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `enabled` | `bool` Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. |
| `template_library_installed` | `bool` Installs the default template library along with Policy Controller. This field is a member of `oneof`_ `_template_library_installed`. |
| `audit_interval_seconds` | `int` Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. This field is a member of `oneof`_ `_audit_interval_seconds`. |
| `exemptable_namespaces` | `MutableSequence[str]` The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. |
| `referential_rules_enabled` | `bool` Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. |
| `log_denies_enabled` | `bool` Logs all denies and dry run failures. |