...
Consider the following YAML example to create a CatalogSource
for the DPOD Cloud Agent for OCP (typically CatalogSources
are created in the openshift-marketplace
namespace):
Do not forget to replace the variables reference (${...}
) with the actual values before creating the CatalogSource
.
Code Block |
---|
apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: ibm-dpod-cloud-agent-catalog namespace: openshift-marketplace spec: displayName: IBM DataPower Operations Dashboard Cloud Agent image: icr.io/dpod/dpod-cloud-agent-operator-catalog:${DPOD_CLOUD_AGENT_OPERATOR_VERSION}1.2.1-amd64 publisher: IBM sourceType: grpc |
...
Code Block |
---|
apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: ibm-dpod-cloud-agent-operator namespace: ${DPOD_CLOUD_AGENT_OPERATOR_NAMESPACE} spec: channel: ${DPOD_CLOUD_AGENT_OPERATOR_CHANNEL}stable-v1.2 installPlanApproval: Automatic name: dpod-cloud-agent-operator source: ibm-dpod-cloud-agent-catalog sourceNamespace: openshift-marketplace startingCSV: dpod-cloud-agent-operator.v${DPOD_CLOUD_AGENT_OPERATOR_VERSION}.v1.2.1 |
Create a YAML file containing the above YAML example.
Use the
oc apply
command to apply the YAML resource.Code Block oc apply -f ibm-datapower-operations-dashboard-cloud-agent-operator.yaml
...