Skip to content

Commit f255aa8

Browse files
authored
Merge pull request #40778 from kmccarron-rh/installingCO
OSDOCS-3189: CMP: Fix Steps 1-3 in Installing the CO using the CLI
2 parents e780d3b + 242dd35 commit f255aa8

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

modules/compliance-operator-cli-installation.adoc

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@
1111

1212
.Procedure
1313

14-
. Create a `Namespace` object YAML file by running:
14+
. Define a `Namespace` object:
1515
+
16-
[source,terminal]
17-
----
18-
$ oc create -f <file-name>.yaml
19-
----
20-
+
21-
.Example output
16+
.Example `namespace-object.yaml`
2217
[source,yaml]
2318
----
2419
apiVersion: v1
@@ -28,15 +23,16 @@ metadata:
2823
openshift.io/cluster-monitoring: "true"
2924
name: openshift-compliance
3025
----
31-
32-
. Create the `OperatorGroup` object YAML file by running:
26+
. Create the `Namespace` object:
3327
+
3428
[source,terminal]
3529
----
36-
$ oc create -f <file-name>.yaml
30+
$ oc create -f namespace-object.yaml
3731
----
32+
33+
. Define an `OperatorGroup` object:
3834
+
39-
.Example output
35+
.Example `operator-group-object.yaml`
4036
[source,yaml]
4137
----
4238
apiVersion: operators.coreos.com/v1
@@ -49,14 +45,16 @@ spec:
4945
- openshift-compliance
5046
----
5147

52-
. Create the `Subscription` object YAML file by running:
48+
. Create the `OperatorGroup` object:
5349
+
5450
[source,terminal]
5551
----
56-
$ oc create -f <file-name>.yaml
52+
$ oc create -f operator-group-object.yaml
5753
----
54+
55+
. Define a `Subscription` object:
5856
+
59-
.Example output
57+
.Example `subscription-object.yaml`
6058
[source,yaml]
6159
----
6260
apiVersion: operators.coreos.com/v1alpha1
@@ -71,6 +69,12 @@ spec:
7169
source: redhat-operators
7270
sourceNamespace: openshift-marketplace
7371
----
72+
. Create the `Subscription` object:
73+
+
74+
[source,terminal]
75+
----
76+
$ oc create -f subscription-object.yaml
77+
----
7478

7579
[NOTE]
7680
====

0 commit comments

Comments
 (0)