Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM] Testing adding insecure registries to DT #2215

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions roles/openshift_setup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,31 @@
additionalTrustedCA:
name: "registry-cas"

- name: Add insecure registry
when: cifmw_update_containers_registry is defined
kubernetes.core.k8s:
kubeconfig: "{{ cifmw_openshift_kubeconfig }}"
api_key: "{{ cifmw_openshift_token | default(omit)}}"
context: "{{ cifmw_openshift_context | default(omit)}}"
merge_type: "merge"
definition:
apiVersion: config.openshift.io/v1
kind: Image
metadata:
name: cluster
spec:
registrySources:
insecureRegistries:
- "{{ cifmw_update_containers_registry }}"
allowedRegistries:
- "{{ cifmw_update_containers_registry }}"
- "quay.io"
- "gcr.io"
- "registry.redhat.io"
- "registry-proxy.engineering.redhat.com"
- "images.paas.redhat.com"
- "image-registry.openshift-image-registry.svc:5000"

- name: Create a ICSP with repository digest mirrors
when:
- cifmw_openshift_setup_digest_mirrors is defined
Expand Down
Loading