Skip to content

Commit ac5c28b

Browse files
perdasilvaPer Goncalves da Silva
and
Per Goncalves da Silva
authored
📖[Docs] How-to: Channel-Based Automatic Updates (#1220)
Signed-off-by: Per Goncalves da Silva <[email protected]> Co-authored-by: Per Goncalves da Silva <[email protected]>
1 parent 39a6912 commit ac5c28b

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## How-to: Channel-Based Automatic Upgrades
2+
3+
A "channel" is a package author defined stream of updates for an extension. A set of channels can be set in the Catalog source to restrict automatic updates to the set of versions defined in those channels.
4+
5+
Example:
6+
7+
```yaml
8+
apiVersion: olm.operatorframework.io/v1alpha1
9+
kind: ClusterExtension
10+
metadata:
11+
name: argocd
12+
spec:
13+
source:
14+
sourceType: Catalog
15+
catalog:
16+
packageName: argocd-operator
17+
# Automatically upgrade to the latest version found in the preview and dev-preview channels
18+
channels: [dev-preview, preview]
19+
install:
20+
namespace: argocd
21+
serviceAccount:
22+
name: argocd-installer
23+
```
24+
25+
Note that the `version` field also accepts a version range to further restrict the set of possible upgradable operator versions.
26+
27+
Example:
28+
29+
```yaml
30+
apiVersion: olm.operatorframework.io/v1alpha1
31+
kind: ClusterExtension
32+
metadata:
33+
name: argocd
34+
spec:
35+
source:
36+
sourceType: Catalog
37+
catalog:
38+
packageName: argocd-operator
39+
channels: [stable] # Automatically upgrade to the latest version found in ‘stable’
40+
version: “!1.3.2” # Don’t allow version 1.3.2
41+
install:
42+
namespace: argocd
43+
serviceAccount:
44+
name: argocd-installer
45+
```

0 commit comments

Comments
 (0)