|
| 1 | +--- |
| 2 | +menu: |
| 3 | + learn: |
| 4 | + parent: Validated patterns frameworks |
| 5 | +title: Adding Operators to the framework |
| 6 | +weight: 23 |
| 7 | +aliases: /ocp-framework/adding-operator-to-framework/ |
| 8 | +--- |
| 9 | + |
| 10 | +:toc: |
| 11 | +:imagesdir: /images |
| 12 | +:_content-type: PROCEDURE |
| 13 | +include::modules/comm-attributes.adoc[] |
| 14 | + |
| 15 | +Subscriptions are defined in the values files and they are OpenShift Operator subscriptions from the Operator Hub. Subscriptions contribute to the creation of a software bill of materials (SBOM), detailing all intended installations within the ClusterGroup. For example in `values-hub.yaml`, the subscriptions defined in the subscriptions section specify Operators that are installed in the hub cluster when you deploy the validated pattern. |
| 16 | + |
| 17 | +This procedure describes how subscriptions to Operators are added to the validated pattern framework. |
| 18 | + |
| 19 | +.Procedure |
| 20 | + |
| 21 | +=== 1. Identify required application services |
| 22 | +* Decide the application services necessary to support the workload. |
| 23 | +* These services are managed through Operators, which handle their lifecycle within OpenShift. |
| 24 | + |
| 25 | +=== 2. Define Operators in the values file |
| 26 | +* Use the validated pattern framework to specify required Operators in a values file (`values-<site>.yaml`). |
| 27 | +* This file should reflect the specific pattern and site type where the Operators will be deployed. |
| 28 | + |
| 29 | +=== 3. Add subscription entries |
| 30 | +* Define the required Operators by adding subscription entries in the `values-<site>.yaml` file. |
| 31 | +* Each entry should specify: |
| 32 | + ** The Operator name |
| 33 | + ** The namespace where it should be deployed |
| 34 | + ** The subscription channel |
| 35 | + ** The ClusterServiceVersion (CSV) |
| 36 | + |
| 37 | +.Example: Deploying Advanced Cluster Management, AMQ, and AMQ Streams |
| 38 | + |
| 39 | +For example, if you want to deploy Advanced Cluster Management, AMQ (messaging) and AMQ Streams (Kafka) in your factory cluster, you would follow the guidance here: |
| 40 | + |
| 41 | +The assumption is there is a `values-factory.yaml` file that is used to deploy the factory cluster. The file should include the following entries: |
| 42 | ++ |
| 43 | +[source,yaml] |
| 44 | +---- |
| 45 | +namespaces: |
| 46 | + - open-cluster-management |
| 47 | + - my-application |
| 48 | + - backend-storage |
| 49 | +
|
| 50 | +subscriptions: |
| 51 | + - name: advanced-cluster-management |
| 52 | + namespace: open-cluster-management |
| 53 | + channel: release-2.3 |
| 54 | + csv: advanced-cluster-management.v2.3.2 |
| 55 | +
|
| 56 | + - name: amq-streams |
| 57 | + namespace: my-application |
| 58 | + channel: amq-streams-1.7.x |
| 59 | + csv: amqstreams.v1.7.1 |
| 60 | +
|
| 61 | + - name: amq-broker |
| 62 | + namespace: my-application |
| 63 | + channel: 7.8.x |
| 64 | + csv: amq-broker-operator.v7.8.1-opr-3 |
| 65 | +---- |
| 66 | + |
| 67 | +The validated pattern framework provisions the required Operators and deploys them to the specified namespaces, ensuring they are available for workload deployment. |
0 commit comments