-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📖[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]>
- Loading branch information
1 parent
39a6912
commit ac5c28b
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## How-to: Channel-Based Automatic Upgrades | ||
|
||
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. | ||
|
||
Example: | ||
|
||
```yaml | ||
apiVersion: olm.operatorframework.io/v1alpha1 | ||
kind: ClusterExtension | ||
metadata: | ||
name: argocd | ||
spec: | ||
source: | ||
sourceType: Catalog | ||
catalog: | ||
packageName: argocd-operator | ||
# Automatically upgrade to the latest version found in the preview and dev-preview channels | ||
channels: [dev-preview, preview] | ||
install: | ||
namespace: argocd | ||
serviceAccount: | ||
name: argocd-installer | ||
``` | ||
Note that the `version` field also accepts a version range to further restrict the set of possible upgradable operator versions. | ||
|
||
Example: | ||
|
||
```yaml | ||
apiVersion: olm.operatorframework.io/v1alpha1 | ||
kind: ClusterExtension | ||
metadata: | ||
name: argocd | ||
spec: | ||
source: | ||
sourceType: Catalog | ||
catalog: | ||
packageName: argocd-operator | ||
channels: [stable] # Automatically upgrade to the latest version found in ‘stable’ | ||
version: “!1.3.2” # Don’t allow version 1.3.2 | ||
install: | ||
namespace: argocd | ||
serviceAccount: | ||
name: argocd-installer | ||
``` |