|
6 | 6 | [id="talo-about-subscription-crs_{context}"]
|
7 | 7 | = Configuring Operator subscriptions for managed clusters that you install with {cgu-operator}
|
8 | 8 |
|
9 |
| -{cgu-operator} can only approve the install plan for an Operator if the `Subscription` CR of the Operator contains a valid `status` field. You can use the following fields: |
10 |
| - |
11 |
| -* `status.state.AtLatestKnown` for the latest Operator version |
12 |
| -* `status.installedCSV` for a specific Operator version |
| 9 | +{cgu-operator-first} can only approve the install plan for an Operator if the `Subscription` custom resource (CR) of the Operator contains the `status.state.AtLatestKnown` field. |
13 | 10 |
|
14 | 11 | .Procedure
|
15 | 12 |
|
16 |
| -. Add one of the following status fields to the `Subscription` CR of the Operator: |
17 |
| - |
18 |
| -.. Add the `status.state.AtLatestKnown` field for the latest Operator version: |
| 13 | +. Add the `status.state.AtLatestKnown` field to the `Subscription` CR of the Operator: |
19 | 14 | +
|
20 | 15 | .Example Subscription CR
|
21 | 16 | [source,yaml]
|
@@ -44,28 +39,5 @@ status:
|
44 | 39 | When a new version of the Operator is available in the registry, the associated policy becomes non-compliant.
|
45 | 40 | ====
|
46 | 41 |
|
47 |
| -.. Add the `status.installedCSV` field for a specific Operator version: |
48 |
| -+ |
49 |
| -.Example Subscription CR |
50 |
| -[source,yaml] |
51 |
| ----- |
52 |
| -apiVersion: operators.coreos.com/v1alpha1 |
53 |
| -kind: Subscription |
54 |
| -metadata: |
55 |
| - name: cluster-logging |
56 |
| - namespace: openshift-logging |
57 |
| - annotations: |
58 |
| - ran.openshift.io/ztp-deploy-wave: "2" |
59 |
| -spec: |
60 |
| - channel: "stable" |
61 |
| - name: cluster-logging |
62 |
| - source: redhat-operators |
63 |
| - sourceNamespace: openshift-marketplace |
64 |
| - installPlanApproval: Manual |
65 |
| -status: |
66 |
| - installedCSV: cluster-logging.v5.7.5 <1> |
67 |
| ----- |
68 |
| -<1> The `status.installedCSV` field with the CSV value is used for a specific version of an Operator, for example, `status.installedCSV: cluster-logging.v5.7.5`. |
69 |
| - |
70 | 42 | +
|
71 | 43 | . Apply the changed `Subscription` policy to your managed clusters with a `ClusterGroupUpgrade` CR.
|
0 commit comments