Skip to content

Commit

Permalink
fix: match crd example names and namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
njhale committed Apr 29, 2020
1 parent ae03397 commit f891bcb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion content/en/docs/Concepts/crds/operatorgroup.md
Expand Up @@ -105,7 +105,7 @@ apiVersion: operators.coreos.com/v1alpha2
kind: OperatorGroup
metadata:
annotations:
olm.providedAPIs: PackageManifest.v1alpha1.packages.apps.redhat.com
olm.providedAPIs: PackageManifest.v1.packages.operators.coreos.com
name: olm-operators
namespace: local
...
Expand Down
10 changes: 5 additions & 5 deletions content/en/docs/Concepts/crds/subscription.md
Expand Up @@ -17,8 +17,8 @@ metadata:
spec:
channel: stable
name: my-operator
source: redhat-operators
sourceNamespace: marketplace
source: my-catalog
sourceNamespace: operators
```

This Subscription object defines the name and namespace of the operator, as well as the catalog from which the operator data can be found. The channel (such as alpha, beta, or stable) helps determine which stream of the operator should be installed from the CatalogSource.
Expand All @@ -36,8 +36,8 @@ metadata:
spec:
channel: stable
name: my-operator
source: redhat-operators
sourceNamespace: marketplace
source: my-catalog
sourceNamespace: operators
approval: Manual
```

Expand All @@ -48,7 +48,7 @@ kubectl -n operators get installplans
NAME CSV APPROVAL APPROVED
install-bfmxd my-operator.v0.1.0 Manual false

$ kubectl -n default patch installplan install-bfmxd -p '{"spec":{"approved":true}}' --type merge
$ kubectl -n operators patch installplan install-bfmxd -p '{"spec":{"approved":true}}' --type merge
installplan.operators.coreos.com/install-bfmxd patched

$ kubectl -n operators get installplans
Expand Down
Expand Up @@ -49,4 +49,4 @@ $ git clone https://github.com/operator-framework/operator-registry
$ make all
```

This generates the required binaries that can be used to package your operator
This generates the required binaries that can be used to package your operator

0 comments on commit f891bcb

Please sign in to comment.