Skip to content

Commit

Permalink
update openshift registry: handle missing disconnected operators
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed May 5, 2024
1 parent 3a80340 commit 7909e11
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,14 @@ storageConfig:
registry:
imageURL: {{ disconnected_url or '$LOCAL_REGISTRY' }}/openshift/release/metadata:latest
mirror:
#platform:
# channels:
# - name: stable-4.10
# minVersion: 4.10.24
# maxVersion: 4.10.24
# graph: true
{% if extra_images is defined %}
additionalImages:
{% for image in extra_images %}
- name: {{ image }}
{% endfor %}
{% endif %}
operators: # Operators we want to mirror
{% if disconnected_operators %}
{% if disconnected_operators|default([]) %}
{% if disconnected_operators_version %}
- catalog: registry.redhat.io/redhat/redhat-operator-index:{{ disconnected_operators_version }}
{% else %}
Expand All @@ -44,7 +38,7 @@ mirror:
{% endif %}
{% endfor %}
{% endif %}
{% if disconnected_certified_operators %}
{% if disconnected_certified_operators|default([]) %}
{% if disconnected_certified_operators_version %}
- catalog: registry.redhat.io/redhat/certified-operator-index:{{ disconnected_certified_operators_version }}
{% else %}
Expand All @@ -71,7 +65,7 @@ mirror:
{% endif %}
{% endfor %}
{% endif %}
{% if disconnected_community_operators %}
{% if disconnected_community_operators|default([]) %}
{% if disconnected_community_operators_version %}
- catalog: registry.redhat.io/redhat/community-operator-index:{{ disconnected_community_operators_version }}
{% else %}
Expand All @@ -98,7 +92,7 @@ mirror:
{% endif %}
{% endfor %}
{% endif %}
{% if disconnected_marketplace_operators %}
{% if disconnected_marketplace_operators|default([]) %}
{% if disconnected_marketplace_operators_version %}
- catalog: registry.redhat.io/redhat/redhat-marketplace-index:{{ disconnected_marketplace_operators_version }}
{% else %}
Expand All @@ -125,7 +119,7 @@ mirror:
{% endif %}
{% endfor %}
{% endif %}
{% if disconnected_extra_catalogs %}
{% if disconnected_extra_catalogs|default([]) %}
{% for catalog_image in disconnected_extra_catalogs %}
- catalog: {{ catalog_image }}
{% endfor %}
Expand Down

0 comments on commit 7909e11

Please sign in to comment.