:_mod-docs-content-type: ASSEMBLY
[id="custom-resource-definitions"]
= Understanding the Custom Resource Definitions
include::_attributes/common-attributes.adoc[]
:context: compliance-crd

toc::[]

[role="_abstract"]
You can use the Custom Resource Definitions (CRDs) provided by the Compliance Operator to run compliance scans and get remediation for the issues found.

The Compliance Operator in the {product-title} provides you with several Custom Resource Definitions (CRDs) to run the compliance scans. The Compliance Operator converts security policies into CRDs, which you can use.

[id="defining-compliance-scan-requirements_{context}"]
== Defining the compliance scan requirements

You can define and set the rules for your compliance scan requirements in the Compliance Operator CRDs, which include `ProfileBundle` and `Profile` objects. You can also customize the default profiles by using a `TailoredProfile` object.

[id="configure-compliance-scan-settings_{context}"]
== Configuring the compliance scan settings

After you have defined the requirements of the compliance scan, you can use a `ScanSetting` object to configure the scan by specifying the type, occurrence, and location of the scan.

[id="process-compliance-requirements-with-compliance-settings_{context}"]
== Processing the compliance scan requirements with compliance scans settings

When you have defined the compliance scan requirements and configured the settings to run the scans, the Compliance Operator processes these settings by using the `ScanSettingBinding` object.

[id="track-compliance-scans_{context}"]
== Tracking the compliance scans

After the creation of compliance suite, you can monitor the status of the deployed scans by using the `ComplianceSuite` object.

[id="view-compliance-results_{context}"]
== Viewing the compliance results

When the compliance suite reaches the `DONE` phase, you can view the scan results and possible remediation.

include::modules/compliance-crd-workflow.adoc[leveloffset=+1]

include::modules/compliance-crd-profile-bundle.adoc[leveloffset=+1]

include::modules/compliance-crd-profile.adoc[leveloffset=+1]

include::modules/compliance-crd-rule.adoc[leveloffset=+1]

include::modules/compliance-crd-tailored-profile.adoc[leveloffset=+1]

include::modules/compliance-crd-scan-setting.adoc[leveloffset=+1]

include::modules/compliance-crd-scan-setting-binding.adoc[leveloffset=+2]

include::modules/compliance-crd-compliance-suite.adoc[leveloffset=+2]

include::modules/compliance-crd-advanced-compliance-scan.adoc[leveloffset=+2]

include::modules/compliance-crd-compliance-check-result.adoc[leveloffset=+2]

include::modules/compliance-crd-compliance-remediation.adoc[leveloffset=+2]

[role="_additional-resources"]
.Additional resources

* link:https://github.com/ComplianceAsCode/content[ComplianceAsCode community project]
