You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can install an Operator from a catalog by creating an Operator custom resource (CR) and applying it to the cluster.
10
+
{olmv1-first} supports installing Operators and extensions scoped to the cluster. You can install an Operator from a catalog by creating an Operator custom resource (CR) and applying it to the cluster.
11
+
12
+
[IMPORTANT]
13
+
====
14
+
Currently, {olmv1} supports the installation Operators and extensions that meet the following criteria:
15
+
16
+
* The Operator or extension must use the `AllNamespaces` install mode.
17
+
* The Operator or extension must not use webhooks.
18
+
19
+
Operators and extensions that use webhooks or that target a single or specified set of namespaces cannot be installed.
20
+
====
11
21
12
22
.Prerequisite
13
23
14
24
* You have added a catalog to your cluster.
15
-
* You have inspected the details of an Operator to find what version you want to install.
25
+
* You have downloaded a local copy of the catalog file.
16
26
17
27
.Procedure
18
28
29
+
. Inspect a package for channel and version information from a local copy of your catalog file by completing the following steps:
30
+
31
+
.. Get a list of channels from a selected package by running the following command:
<channel>:: Optional: Specifies the channel, such as `pipelines-1.11` or `latest`, for the package you want to install or update.
116
+
<version>:: Optional: Specifies the specific version or version range, such as `1.11.1`, `1.12.x`, or `>=1.12.1`, of the package you want to install or update. For more information, see "About target versions in OLM 1.0" and "Support for version ranges".
32
117
33
118
. Apply the Operator CR to the cluster by running the following command:
34
119
+
35
120
[source,terminal]
36
121
----
37
-
$ oc apply -f test-operator.yaml
122
+
$ oc apply -f pipeline-operator.yaml
38
123
----
39
124
+
40
125
.Example output
41
126
[source,text]
42
127
----
43
-
operator.operators.operatorframework.io/quay-example created
128
+
operator.operators.operatorframework.io/pipelines-operator created
44
129
----
45
130
46
131
.Verification
@@ -49,54 +134,113 @@ operator.operators.operatorframework.io/quay-example created
49
134
+
50
135
[source,terminal]
51
136
----
52
-
$ oc get operator.operators.operatorframework.io/quay-example -o yaml
137
+
$ oc get operator.operators.operatorframework.io pipelines-operator -o yaml
53
138
----
54
139
+
140
+
[NOTE]
141
+
====
142
+
If you specify a channel or define a version range in your Operator or extension's CR, {olmv1} does not display the resolved version installed on the cluster. Only the version and channel information specified in the CR are displayed.
143
+
144
+
If you want to find the specific version that is installed, you must compare the SHA of the image of the `spec.source.image.ref` field to the image reference in the catalog.
message: resolved to "registry.redhat.io/quay/quay-operator-bundle@sha256:bf26c7679ea1f7b47d2b362642a9234cddb9e366a89708a4ffcbaf4475788dc7"
170
+
- lastTransitionTime: "2024-01-30T20:06:15Z"
171
+
message: resolved to "registry.redhat.io/openshift-pipelines/pipelines-operator-bundle@sha256:e09d37bb1e754db42324fd18c1cb3e7ce77e7b7fcbf4932d0535391579938280"
76
172
observedGeneration: 1
77
173
reason: Success
78
174
status: "True"
79
175
type: Resolved
80
-
- lastTransitionTime: "2023-10-19T18:39:46Z"
81
-
message: installed from "registry.redhat.io/quay/quay-operator-bundle@sha256:bf26c7679ea1f7b47d2b362642a9234cddb9e366a89708a4ffcbaf4475788dc7"
176
+
- lastTransitionTime: "2024-01-30T20:06:31Z"
177
+
message: installed from "registry.redhat.io/openshift-pipelines/pipelines-operator-bundle@sha256:e09d37bb1e754db42324fd18c1cb3e7ce77e7b7fcbf4932d0535391579938280"
0 commit comments