Skip to content

Commit

Permalink
[patch] Include DRO in ImageSetConfig & ImageContentSourcePolicy (#1127)
Browse files Browse the repository at this point in the history
Co-authored-by: David Parker <[email protected]>
  • Loading branch information
yuvraj-vansure and durera committed Dec 13, 2023
1 parent f928af8 commit ca3da8e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 14 deletions.
32 changes: 18 additions & 14 deletions ibm/mas_devops/roles/mirror_ocp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,29 @@ Four actions are supported:
- `direct` Directly mirror content to your target registry
- `to-filesystem` Mirror content to the local filesystem
- `from-filesystem` Mirror content from the local filesystem to your target registry
- `install-catalogs` Install CatalogSources for the mirrored content.

Two **CatalogSources** are created by the `install-catalogs` action in the `openshift-marketplace` namespace, containing the following content:
Three **Catalogs** are mirrored, containing the following content:

### certified-operator-index
- crunchy-postgres-operator (required by ibm.mas_devops.uds role)
- gpu-operator-certified (required by ibm.mas_devops.nvidia_gpu role)
- kubeturbo-certified (required by ibm.mas_devops.kubeturbo role)
- ibm-metrics-operator (required by ibm.mas_devops.dro role)
- ibm-data-reporter-operator (required by ibm.mas_devops.dro role)
- redhat-marketplace-operator (required by ibm.mas_devops.dro role)

### community-operator-index
- grafana-operator (required by ibm.mas_devops.cluster_monitoring role)
- opentelemetry-operator (required by ibm.mas_devops.cluster_monitoring role)
- strimzi-kafka-operator (required by ibm.mas_devops.kafka role)

### redhat-operator-index
- amq-streams (required by ibm.mas_devops.kafka role)
- openshift-pipelines-operator-rh (required by the MAS CLI)

!!! note
We are limited to the content we can support mirroring for today due to bug with Red Hat's support for OCI images, this prevents the mirroring of the following packages (which are all optional dependencies):

- **kubeturbo-certified**
- **grafana-operator**
- **opentelemetry-operator**

For more information refer to [solution 6997884](https://access.redhat.com/solutions/6997884) and [CFE 780](https://issues.redhat.com/browse/CFE-780).
- nfd (required by ibm.mas_devops.nvidia_gpu role)
- aws-efs-csi-driver-operator (required by ibm.mas_devops.ocp_efs role)
- local-storage-operator (required by ibm.mas_devops.ocs role)
- odf-operator (required by ibm.mas_devops.ocs role)


Requirements
Expand Down Expand Up @@ -136,9 +140,9 @@ Example Playbook
```yaml
- hosts: localhost
vars:
registry_public_host: myocp-5f1320191125833da1cac8216c06779e-0000.us-south.containers.appdomain.cloud
registry_public_port: 32500
registry_username: admin
registry_public_host: myregistry.mycompany.com
registry_public_port: 5000
registry_username: user1
registry_password: 8934jk77s862! # Not a real password, don't worry security folks

mirror_mode: direct
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ mirror:
- name: kubeturbo-certified # Required by ibm.mas_devops.kubeturbo role
channels:
- name: stable
- name: ibm-metrics-operator # Required by ibm.mas_devops.dro role
channels:
- name: stable
- name: ibm-data-reporter-operator # Required by ibm.mas_devops.dro role
channels:
- name: stable
- name: redhat-marketplace-operator # Required by ibm.mas_devops.dro role
channels:
- name: stable


# community-operators
- catalog: registry.redhat.io/redhat/community-operator-index:v{{ ocp_release }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,9 @@ spec:
- mirrors:
- {{ registry_private_url }}/turbonomic
source: registry.connect.redhat.com/turbonomic
- mirrors:
- {{ registry_private_url }}/rh-marketplace
source: quay.io/rh-marketplace
- mirrors:
- {{ registry_private_url }}/rh-marketplace
source: registry.connect.redhat.com/rh-marketplace

0 comments on commit ca3da8e

Please sign in to comment.