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
Copy file name to clipboardExpand all lines: modules/olmv1-about-target-versions.adoc
+43-33Lines changed: 43 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -22,18 +22,22 @@ If you specify a channel in the CR, {olmv1} installs the latest version of the O
22
22
.Example CR with a specified channel
23
23
[source,yaml]
24
24
----
25
-
apiVersion: olm.operatorframework.io/v1alpha1
26
-
kind: ClusterExtension
27
-
metadata:
28
-
name: pipelines-operator
29
-
spec:
30
-
packageName: openshift-pipelines-operator-rh
31
-
installNamespace: <namespace_name>
32
-
serviceAccount:
33
-
name: <service_account>
34
-
channel: latest <1>
25
+
apiVersion: olm.operatorframework.io/v1
26
+
kind: ClusterExtension
27
+
metadata:
28
+
name: <clusterextension_name>
29
+
spec:
30
+
namespace: <installed_namespace>
31
+
serviceAccount:
32
+
name: <service_account_installer_name>
33
+
source:
34
+
sourceType: Catalog
35
+
catalog:
36
+
packageName: <package_name>
37
+
channels:
38
+
- latest <1>
35
39
----
36
-
<1> Installs the latest release that can be resolved from the specified channel. Updates to the channel are automatically installed.
40
+
<1> Optional: Installs the latest release that can be resolved from the specified channel. Updates to the channel are automatically installed. Specify the value of the `channels` parameter as an array.
37
41
38
42
If you specify the Operator or extension's target version in the CR, {olmv1} installs the specified version. When the target version is specified in the CR, {olmv1} does not change the target version when updates are published to the catalog.
39
43
@@ -42,36 +46,42 @@ If you want to update the version of the Operator that is installed on the clust
42
46
.Example CR with the target version specified
43
47
[source,yaml]
44
48
----
45
-
apiVersion: olm.operatorframework.io/v1alpha1
46
-
kind: ClusterExtension
47
-
metadata:
48
-
name: pipelines-operator
49
-
spec:
50
-
packageName: openshift-pipelines-operator-rh
51
-
installNamespace: <namespace_name>
52
-
serviceAccount:
53
-
name: <service_account>
54
-
version: "1.11.1" <1>
49
+
apiVersion: olm.operatorframework.io/v1
50
+
kind: ClusterExtension
51
+
metadata:
52
+
name: <clusterextension_name>
53
+
spec:
54
+
namespace: <installed_namespace>
55
+
serviceAccount:
56
+
name: <service_account_installer_name>
57
+
source:
58
+
sourceType: Catalog
59
+
catalog:
60
+
packageName: <package_name>
61
+
version: "1.11.1" <1>
55
62
----
56
-
<1> Specifies the target version. If you want to update the version of the Operator or extension that is installed, you must manually update this field the CR to the desired target version.
63
+
<1> Optional: Specifies the target version. If you want to update the version of the Operator or extension that is installed, you must manually update this field the CR to the desired target version.
57
64
58
65
If you want to define a range of acceptable versions for an Operator or extension, you can specify a version range by using a comparison string. When you specify a version range, {olmv1} installs the latest version of an Operator or extension that can be resolved by the Operator Controller.
59
66
60
67
.Example CR with a version range specified
61
68
[source,yaml]
62
69
----
63
-
apiVersion: olm.operatorframework.io/v1alpha1
64
-
kind: ClusterExtension
65
-
metadata:
66
-
name: pipelines-operator
67
-
spec:
68
-
packageName: openshift-pipelines-operator-rh
69
-
installNamespace: <namespace_name>
70
-
serviceAccount:
71
-
name: <service_account>
72
-
version: ">1.11.1" <1>
70
+
apiVersion: olm.operatorframework.io/v1
71
+
kind: ClusterExtension
72
+
metadata:
73
+
name: <clusterextension_name>
74
+
spec:
75
+
namespace: <installed_namespace>
76
+
serviceAccount:
77
+
name: <service_account_installer_name>
78
+
source:
79
+
sourceType: Catalog
80
+
catalog:
81
+
packageName: <package_name>
82
+
version: ">1.11.1" <1>
73
83
----
74
-
<1> Specifies that the desired version range is greater than version `1.11.1`. For more information, see "Support for version ranges".
84
+
<1> Optional: Specifies that the desired version range is greater than version `1.11.1`. For more information, see "Support for version ranges".
75
85
76
86
After you create or update a CR, apply the configuration file by running the following command:
Copy file name to clipboardExpand all lines: modules/olmv1-forcing-an-update-or-rollback.adoc
+21-15Lines changed: 21 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -27,22 +27,28 @@ You must verify the consequences of forcing a manual update or rollback. Failure
27
27
.Example CR
28
28
[source,yaml]
29
29
----
30
-
apiVersion: olm.operatorframework.io/v1alpha1
31
-
kind: Operator
32
-
metadata:
33
-
name: <operator_name> <1>
34
-
spec:
35
-
packageName: <package_name> <2>
36
-
installNamespace: <namespace_name>
37
-
serviceAccount:
38
-
name: <service_account>
39
-
version: <version> <3>
40
-
upgradeConstraintPolicy: Ignore <4>
30
+
apiVersion: olm.operatorframework.io/v1
31
+
kind: ClusterExtension
32
+
metadata:
33
+
name: <clusterextension_name>
34
+
spec:
35
+
namespace: <installed_namespace> <1>
36
+
serviceAccount:
37
+
name: <service_account_installer_name> <2>
38
+
source:
39
+
sourceType: Catalog
40
+
catalog:
41
+
packageName: <package_name>
42
+
channels:
43
+
- <channel_name> <3>
44
+
version: <version_or_version_range> <4>
45
+
upgradeConstraintPolicy: SelfCertified <5>
41
46
----
42
-
<1> Specifies the name of the Operator or extension, such as `pipelines-operator`
43
-
<2> Specifies the package name, such as `openshift-pipelines-operator-rh`.
44
-
<3> Specifies the blocked update or rollback version.
45
-
<4> Optional: Specifies the upgrade constraint policy. To force an update or rollback, set the field to `Ignore`. If unspecified, the default setting is `Enforce`.
47
+
<1> Specifies the namespace where you want the bundle installed, such as `pipelines` or `my-extension`. Extensions are still cluster-scoped and might contain resources that are installed in different namespaces.
48
+
<2> Specifies the name of the service account you created to install, update, and manage your extension.
49
+
<3> Optional: Specifies channel names as an array, such as `pipelines-1.14` or `latest`.
50
+
<4> Optional: Specifies the version or version range, such as `1.14.0`, `1.14.x`, or `>=1.16`, of the package you want to install or update. For more information, see "Example custom resources (CRs) that specify a target version" and "Support for version ranges".
51
+
<5> Optional: Specifies the upgrade constraint policy. To force an update or rollback, set the field to `SelfCertified`. If unspecified, the default setting is `CatalogProvided`. The `CatalogProvided` setting only updates if the new version satisfies the upgrade constraints set by the package author.
46
52
47
53
. Apply the changes to your Operator or extensions CR by running the following command:
<1> Specifies the namespace where you want the bundle installed, such as `pipelines` or `my-extension`. Extensions are still cluster-scoped and might contain resources that are installed in different namespaces.
39
40
<2> Specifies the name of the service account you created to install, update, and manage your extension.
40
41
<3> Optional: Specifies channel names as an array, such as `pipelines-1.14` or `latest`.
41
42
<4> Optional: Specifies the version or version range, such as `1.14.0`, `1.14.x`, or `>=1.16`, of the package you want to install or update. For more information, see "Example custom resources (CRs) that specify a target version" and "Support for version ranges".
43
+
<5> Optional: Specifies the upgrade constraint policy. If unspecified, the default setting is `CatalogProvided`. The `CatalogProvided` setting only updates if the new version satisfies the upgrade constraints set by the package author. To force an update or rollback, set the field to `SelfCertified`. For more information, see "Forcing an update or rollback".
Copy file name to clipboardExpand all lines: modules/olmv1-version-range-comparisons.adoc
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -40,14 +40,19 @@ You can specify a version range in an Operator or extension's CR by using a rang
40
40
.Example version range comparison
41
41
[source,yaml]
42
42
----
43
-
apiVersion: olm.operatorframework.io/v1alpha1
44
-
kind: ClusterExtension
45
-
metadata:
46
-
name: pipelines-operator
47
-
spec:
48
-
packageName: openshift-pipelines-operator-rh
49
-
installNamespace: <namespace_name>
50
-
version: ">=1.11, <1.13"
43
+
apiVersion: olm.operatorframework.io/v1
44
+
kind: ClusterExtension
45
+
metadata:
46
+
name: <clusterextension_name>
47
+
spec:
48
+
namespace: <installed_namespace>
49
+
serviceAccount:
50
+
name: <service_account_installer_name>
51
+
source:
52
+
sourceType: Catalog
53
+
catalog:
54
+
packageName: <package_name>
55
+
version: ">=1.11, <1.13"
51
56
----
52
57
53
58
You can use wildcard characters in all types of comparison strings. {olmv1} accepts `x`, `X`, and asterisks (`*`) as wildcard characters. When you use a wildcard character with the equal sign (`=`) comparison operator, you define a comparison at the patch or minor version level.
0 commit comments