Skip to content

Commit f32871b

Browse files
author
Shawn Hurley
committed
Fixing operator group to match exmaple in concept doc
1 parent a6b03a7 commit f32871b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

content/en/docs/Tasks/install-operator-with-olm.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ description: >
66
[Once you've made your operator available in a catalog](/docs/tasks/make-operator-part-of-catalog/), or you've chosen an operator from the [list of operators available to be installed in the cluster](/docs/tasks/list-operators-available-to-install/), you can install your operator by creating a [`Subscription`](/docs/concepts/customresourcedefinitions/subscription/) to a specific [channel](/docs/concepts/glossary/#channel).
77
---
88

9-
Before installing into a namespace, you will need to create an [operator group](/docs/concepts/crds/operatorgroup) in that namespace. The operator group must provide the namespaces that match the operator that you trying to install `installModes`.
9+
Before installing an operator into a namespace, you will need to create an [OperatorGroup resource](/docs/concepts/crds/operatorgroup) in that namespace. The OperatorGroup must target namespaces such that it matches the operator's `installModes`.
1010

11-
For example installing an operator into `foo` namespace that will be cluster scoped you would create a operator group like:
11+
For example, to install a cluster scoped operator into the `foo` namespace create an OperatorGroup like:
1212

1313

1414
```yaml
@@ -17,11 +17,9 @@ kind: OperatorGroup
1717
metadata:
1818
name: my-group
1919
namespace: foo
20-
spec:
21-
targetNamespaces:
2220
```
2321
24-
After creating this resource you can create subscriptions to install cluster scoped operators.
22+
After creating this resource you can create Subscriptions to install cluster scoped operators.
2523
2624
```yaml
2725
apiVersion: operators.coreos.com/v1alpha1
@@ -35,6 +33,7 @@ spec:
3533
source: <name-of-catalog-operator-is-part-of>
3634
sourceNamespace: <namespace-that-has-catalog>
3735
```
36+
3837
For example, if you want to install an operator named `my-operator`, from a catalog named `my-catalog` that is in the namespace `olm`, and you want to subscribe to the channel `stable`, your subscription yaml would look like this:
3938

4039
```yaml

0 commit comments

Comments
 (0)