Skip to content

Commit 3540bce

Browse files
committed
Simplify CLI instructions for Compliance Operator
The uninstall instructions used variables that users need to interpret to run commands in their own environments. This commit uses the `--all` argument to delete all instances of a particular resource, removing the need for users to query each resource and delete them individually. This makes the commands easier to copy/paste.
1 parent bfe2a14 commit 3540bce

File tree

1 file changed

+7
-29
lines changed

1 file changed

+7
-29
lines changed

modules/compliance-operator-cli-uninstall.adoc

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,71 +21,49 @@ To remove the Compliance Operator, you must first delete the objects in the name
2121
+
2222
[source,terminal]
2323
----
24-
$ oc delete ssb <ScanSettingBinding-name> -n openshift-compliance
24+
$ oc delete ssb --all -n openshift-compliance
2525
----
2626

2727
.. Delete the `ScanSetting` objects:
2828
+
2929
[source,terminal]
3030
----
31-
$ oc delete ss <ScanSetting-name> -n openshift-compliance
31+
$ oc delete ss --all -n openshift-compliance
3232
----
3333

3434
.. Delete the `ComplianceSuite` objects:
3535
+
3636
[source,terminal]
3737
----
38-
$ oc delete suite <compliancesuite-name> -n openshift-compliance
38+
$ oc delete suite --all -n openshift-compliance
3939
----
4040

4141
.. Delete the `ComplianceScan` objects:
4242
+
4343
[source,terminal]
4444
----
45-
$ oc delete scan <compliancescan-name> -n openshift-compliance
46-
----
47-
48-
.. Obtain the `ProfileBundle` objects:
49-
+
50-
[source,terminal]
51-
----
52-
$ oc get profilebundle.compliance -n openshift-compliance
53-
----
54-
+
55-
.Example output
56-
[source,terminal]
57-
----
58-
NAME CONTENTIMAGE CONTENTFILE STATUS
59-
ocp4 registry.redhat.io/compliance/openshift-compliance-content-rhel8@sha256:<hash> ssg-ocp4-ds.xml VALID
60-
rhcos4 registry.redhat.io/compliance/openshift-compliance-content-rhel8@sha256:<hash> ssg-rhcos4-ds.xml VALID
45+
$ oc delete scan --all -n openshift-compliance
6146
----
6247

6348
.. Delete the `ProfileBundle` objects:
6449
+
6550
[source,terminal]
6651
----
67-
$ oc delete profilebundle.compliance ocp4 rhcos4 -n openshift-compliance
68-
----
69-
+
70-
.Example output
71-
[source,terminal]
72-
----
73-
profilebundle.compliance.openshift.io "ocp4" deleted
74-
profilebundle.compliance.openshift.io "rhcos4" deleted
52+
$ oc delete profilebundle.compliance --all -n openshift-compliance
7553
----
7654

7755
. Delete the Subscription object:
7856
+
7957
[source,terminal]
8058
----
81-
$ oc delete sub <Subscription-Name> -n openshift-compliance
59+
$ oc delete sub --all -n openshift-compliance
8260
----
8361

8462
. Delete the CSV object:
8563
+
8664
[source,terminal]
8765
----
88-
$ oc delete csv <ComplianceCSV-Name> -n openshift-compliance
66+
$ oc delete csv --all -n openshift-compliance
8967
----
9068

9169
. Delete the project:

0 commit comments

Comments
 (0)