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

20 lines
772 B
Plaintext
Raw Normal View History

2021-02-22 17:17:17 -05:00
// Module included in the following assemblies:
//
// * security/compliance_operator/co-scans/compliance-operator-advanced.adoc
2021-02-22 17:17:17 -05:00
:_mod-docs-content-type: PROCEDURE
2021-02-22 17:17:17 -05:00
[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=
2021-02-22 17:17:17 -05:00
----