@@ -91,25 +91,25 @@ select( .schema == "olm.channel" ) | select( .name == "latest" ) | \
9191+
9292[source,terminal]
9393----
94- $ oc get operator.operators.operatorframework.io <operator_name> -o yaml
94+ $ oc get clusterextension <operator_name> -o yaml
9595----
9696+
9797.Example command
9898[source,terminal]
9999----
100- $ oc get operator.operators.operatorframework.io pipelines-operator -o yaml
100+ $ oc get clusterextension pipelines-operator -o yaml
101101----
102102+
103103.Example output
104104[%collapsible]
105105====
106106[source,text]
107107----
108- apiVersion: operators .operatorframework.io/v1alpha1
109- kind: Operator
108+ apiVersion: olm .operatorframework.io/v1alpha1
109+ kind: ClusterExtension
110110metadata:
111111 annotations:
112- kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"operators .operatorframework.io/v1alpha1","kind":"Operator ","metadata":{"annotations":{},"name":"pipelines-operator"},"spec":{"channel":"latest","packageName":"openshift-pipelines-operator-rh","version":"1.11.1"}}
112+ kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"olm .operatorframework.io/v1alpha1","kind":"ClusterExtension ","metadata":{"annotations":{},"name":"pipelines-operator"},"spec":{"channel":"latest","packageName":"openshift-pipelines-operator-rh","version":"1.11.1"}}
113113 creationTimestamp: "2024-02-06T17:47:15Z"
114114 generation: 2
115115 name: pipelines-operator
@@ -151,8 +151,8 @@ include::snippets/olmv1-version-range-cr-adomn.adoc[]
151151.Example `pipelines-operator.yaml` CR
152152[source,yaml]
153153----
154- apiVersion: operators .operatorframework.io/v1alpha1
155- kind: Operator
154+ apiVersion: olm .operatorframework.io/v1alpha1
155+ kind: ClusterExtension
156156metadata:
157157 name: pipelines-operator
158158spec:
@@ -166,8 +166,8 @@ spec:
166166.Example CR with a version range specified
167167[source,yaml]
168168----
169- apiVersion: operators .operatorframework.io/v1alpha1
170- kind: Operator
169+ apiVersion: olm .operatorframework.io/v1alpha1
170+ kind: ClusterExtension
171171metadata:
172172 name: pipelines-operator
173173spec:
@@ -181,8 +181,8 @@ spec:
181181.Example CR with a specified channel
182182[source,yaml]
183183----
184- apiVersion: operators .operatorframework.io/v1alpha1
185- kind: Operator
184+ apiVersion: olm .operatorframework.io/v1alpha1
185+ kind: ClusterExtension
186186metadata:
187187 name: pipelines-operator
188188spec:
@@ -196,8 +196,8 @@ spec:
196196.Example CR with a specified channel and version range
197197[source,yaml]
198198----
199- apiVersion: operators .operatorframework.io/v1alpha1
200- kind: Operator
199+ apiVersion: olm .operatorframework.io/v1alpha1
200+ kind: ClusterExtension
201201metadata:
202202 name: pipelines-operator
203203spec:
@@ -218,7 +218,7 @@ $ oc apply -f pipelines-operator.yaml
218218.Example output
219219[source,text]
220220----
221- operator.operators .operatorframework.io/pipelines-operator configured
221+ clusterextension.olm .operatorframework.io/pipelines-operator configured
222222----
223223+
224224[TIP]
@@ -227,15 +227,15 @@ You can patch and apply the changes to your CR from the CLI by running the follo
227227
228228[source,terminal]
229229----
230- $ oc patch operator.operators.operatorframework.io /pipelines-operator -p \
230+ $ oc patch clusterextension /pipelines-operator -p \
231231 '{"spec":{"version":"1.12.1"}}' \
232232 --type=merge
233233----
234234
235235.Example output
236236[source,text]
237237----
238- operator.operators .operatorframework.io/pipelines-operator patched
238+ clusterextension.olm .operatorframework.io/pipelines-operator patched
239239----
240240====
241241
@@ -245,20 +245,20 @@ operator.operators.operatorframework.io/pipelines-operator patched
245245+
246246[source,terminal]
247247----
248- $ oc get operator.operators.operatorframework.io pipelines-operator -o yaml
248+ $ oc get clusterextension pipelines-operator -o yaml
249249----
250250+
251251.Example output
252252[%collapsible]
253253====
254254[source,yaml]
255255----
256- apiVersion: operators .operatorframework.io/v1alpha1
256+ apiVersion: olm .operatorframework.io/v1alpha1
257257kind: Operator
258258metadata:
259259 annotations:
260260 kubectl.kubernetes.io/last-applied-configuration: |
261- {"apiVersion":"operators .operatorframework.io/v1alpha1","kind":"Operator ","metadata":{"annotations":{},"name":"pipelines-operator"},"spec":{"channel":"latest","packageName":"openshift-pipelines-operator-rh","version":"1.12.1"}}
261+ {"apiVersion":"olm .operatorframework.io/v1alpha1","kind":"ClusterExtension ","metadata":{"annotations":{},"name":"pipelines-operator"},"spec":{"channel":"latest","packageName":"openshift-pipelines-operator-rh","version":"1.12.1"}}
262262 creationTimestamp: "2024-02-06T19:16:12Z"
263263 generation: 4
264264 name: pipelines-operator
@@ -295,21 +295,21 @@ status:
295295+
296296[source,terminal]
297297----
298- $ oc get operator.operators.operatorframework.io <operator_name> -o yaml
298+ $ oc get clusterextension <operator_name> -o yaml
299299----
300300+
301301.Example output
302302[%collapsible]
303303====
304304[source,text]
305305----
306- oc get operator.operators.operatorframework.io pipelines-operator -o yaml
307- apiVersion: operators .operatorframework.io/v1alpha1
308- kind: Operator
306+ oc get clusterextension pipelines-operator -o yaml
307+ apiVersion: olm .operatorframework.io/v1alpha1
308+ kind: ClusterExtension
309309metadata:
310310 annotations:
311311 kubectl.kubernetes.io/last-applied-configuration: |
312- {"apiVersion":"operators .operatorframework.io/v1alpha1","kind":"Operator ","metadata":{"annotations":{},"name":"pipelines-operator"},"spec":{"channel":"latest","packageName":"openshift-pipelines-operator-rh","version":"2.0.0"}}
312+ {"apiVersion":"olm .operatorframework.io/v1alpha1","kind":"ClusterExtension ","metadata":{"annotations":{},"name":"pipelines-operator"},"spec":{"channel":"latest","packageName":"openshift-pipelines-operator-rh","version":"2.0.0"}}
313313 creationTimestamp: "2024-02-06T17:47:15Z"
314314 generation: 1
315315 name: pipelines-operator
0 commit comments