Skip to content

Commit

Permalink
Merge pull request openshift#40396 from openshift-cherrypick-robot/ch…
Browse files Browse the repository at this point in the history
…erry-pick-40361-to-enterprise-4.7

[enterprise-4.7] OSDOCS-3150: Add flag argument to the Unapply a remediation command
  • Loading branch information
bergerhoffer authored Jan 10, 2022
2 parents a7e9305 + 6cf72b9 commit ad7fc47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/compliance-unapplying.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
It might be required to unapply a remediation that was previously applied.

.Procedure
. Toggle the flag to `false`:
. Set the `apply` flag to `false`:
+
[source,terminal]
----
$ oc patch complianceremediations/<scan_name>-sysctl-net-ipv4-conf-all-accept-redirects
$ oc patch complianceremediations/<scan_name>-sysctl-net-ipv4-conf-all-accept-redirects -p '{"spec":{"apply":false}}' --type=merge
----

. The remediation status will change to `NotApplied` and the composite `MachineConfig` object would be re-rendered to not include the remediation.
Expand Down

0 comments on commit ad7fc47

Please sign in to comment.