1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/compliance-apply-remediations-from-scans.adoc
2023-10-30 10:13:25 -04:00

20 lines
772 B
Plaintext

// Module included in the following assemblies:
//
// * security/compliance_operator/co-scans/compliance-operator-advanced.adoc
:_mod-docs-content-type: PROCEDURE
[id="installing-compliance-operator-cli_{context}"]
= Applying remediations generated by suite scans
Although you can use the `autoApplyRemediations` boolean parameter in a `ComplianceSuite` object, you can alternatively annotate the object with `compliance.openshift.io/apply-remediations`. This allows the Operator to apply all of the created remediations.
.Procedure
* Apply the `compliance.openshift.io/apply-remediations` annotation by running:
[source,terminal]
----
$ oc -n openshift-compliance \
annotate compliancesuites/workers-compliancesuite compliance.openshift.io/apply-remediations=
----