---
apiVersion: v1
kind: ConfigMap
metadata:
  name: assisted-mirror-config
  namespace: open-cluster-management
  labels:
    app: assisted-service
data:
  ca-bundle.crt: |
    {{ mirror_cert.content | b64decode | indent(width=4) }}

  registries.conf: |
    unqualified-search-registries = ["registry.access.redhat.com", "docker.io"]

    [[registry]]
      prefix = ""
      location = "{{ rhacm_disconnected_registry }}/acm-d/ose-oauth-proxy"
      mirror-by-digest-only = false

      [[registry.mirror]]
        location = "{{ rhacm_disconnected_registry }}/openshift4/ose-oauth-proxy"

    [[registry]]
      prefix = ""
      location = "quay.io/acm-d"
      mirror-by-digest-only = false

      [[registry.mirror]]
        location = "{{ rhacm_disconnected_registry }}/acm-d"

    [[registry]]
      prefix = ""
      location = "registry.redhat.io/multicluster-engine"
      mirror-by-digest-only = false

      [[registry.mirror]]
        location = "{{ rhacm_disconnected_registry }}/acm-d"

    [[registry]]
      prefix = ""
      location = "quay.io/ocpmetal"
      mirror-by-digest-only = false

      [[registry.mirror]]
        location = "{{ rhacm_disconnected_registry }}/ocpmetal"

    [[registry]]
      prefix = ""
      location = "quay.io/openshift-release-dev/ocp-release"
      mirror-by-digest-only = false

      [[registry.mirror]]
        location = "{{ rhacm_disconnected_registry }}/ocp4/openshift4"

    [[registry]]
      prefix = ""
      location = "quay.io/openshift-release-dev/ocp-v4.0-art-dev"
      mirror-by-digest-only = false

      [[registry.mirror]]
        location = "{{ rhacm_disconnected_registry }}/ocp4/openshift4"

    [[registry]]
      prefix = ""
      location = "registry.redhat.io/rhacm2"
      mirror-by-digest-only = false

      [[registry.mirror]]
        location = "{{ rhacm_disconnected_registry }}/acm-d"
