Skip to content

Commit 586f466

Browse files
author
David Sariel
committed
DNM: Applay cifmw_catalog_manifect
1 parent e269481 commit 586f466

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

roles/openshift_setup/tasks/configure_registries.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@
3737
- "{{ cifmw_update_containers_registry }}"
3838
allowedRegistries: "{{ all_registries }}"
3939

40+
- name: Print cifmw_openshift_setup_digest_mirrors value
41+
ansible.builtin.debug:
42+
msg:
43+
- "Defined: {{ cifmw_openshift_setup_digest_mirrors is defined }}"
44+
- "Type: {{ cifmw_openshift_setup_digest_mirrors | type_debug }}"
45+
- "Value: {{ cifmw_openshift_setup_digest_mirrors | default('UNDEFINED') }}"
46+
47+
- name: Print cifmw_catalog_manifect value
48+
ansible.builtin.debug:
49+
msg:
50+
- "Defined: {{ cifmw_catalog_manifect is defined }}"
51+
- "Type: {{ cifmw_catalog_manifect | type_debug }}"
52+
- "Value: {{ cifmw_catalog_manifect | default('UNDEFINED') }}"
53+
4054
- name: Create ImageDigestMirrorSet repository digest mirrors
4155
when:
4256
- cifmw_openshift_setup_digest_mirrors is defined
@@ -53,6 +67,16 @@
5367
spec:
5468
imageDigestMirrors: "{{ cifmw_openshift_setup_digest_mirrors }}"
5569

70+
- name: Create CatalogSource for OpenStack operators
71+
when:
72+
- cifmw_catalog_manifect is defined
73+
- cifmw_catalog_manifect | length > 0
74+
kubernetes.core.k8s:
75+
kubeconfig: "{{ cifmw_openshift_kubeconfig }}"
76+
api_key: "{{ cifmw_openshift_token | default(omit)}}"
77+
context: "{{ cifmw_openshift_context | default(omit)}}"
78+
definition: "{{ cifmw_catalog_manifect }}"
79+
5680
# If both ImageDigestMirrorSet and ImageTagMirrorSet are applied to the registries,
5781
# ITMS acts as a fallback for tag-based pulls, while IDMS provides the primary
5882
# secure source for digests

0 commit comments

Comments
 (0)