Red Hat Bugzilla – Bug 1543129
Installer needs a way to configure the local registry adapter for additional projects, more than just 'openshift'
Last modified: 2018-10-11 03:20:12 EDT
Description of problem: For the Template Service Broker there is a configuration variable that allows adding more than just the 'openshift' project to the search scope of the template service broker: openshift_template_service_broker_namespaces=['openshift','templates'] We need the same capability for the Ansible Service Broker. It isn't quite feasible to store every apb in the 'openshift' project. So something like: ansible_service_broker_local_registry_namespaces=['openshift','apb'] We already have whitelists as a configuration option: ansible_service_broker_local_registry_whitelist=['.*-apb$'] So adding the namespaces/projects should be a next logical step. Ideally we could specify something like '*' or 'ALL' to make both brokers search all namespaces the way templates work in OCP versions <3.7. Version-Release number of the following components: 3.7.23 How reproducible: Always
For now I am going to expose a new var `ansible_service_broker_local_registry_namespaces` which is a list of namespaces that can be used and defaults to ['openshift`]. +1 to the idea of specifying "*" and having the broker search all namespaces it has access to. Since this will be a more involved change and outside the scope of the installer I will create a separate bug for that.
https://github.com/openshift/openshift-ansible/pull/9485
Commits pushed to master at https://github.com/openshift/openshift-ansible https://github.com/openshift/openshift-ansible/commit/bf2c042dc08786377fd31644f050bb6d4eb5eb95 Bug 1543129 - Add configuration option for ASB local registry namespaces https://github.com/openshift/openshift-ansible/commit/728b2be34cc82799ec4c62fd7893cea9b0aaa0ae Merge pull request #9485 from dymurray/namespaces Bug 1543129 - Add configuration option for ASB local registry namespaces
Verified. openshift-ansible-3.11.0-0.25.0 when set : ansible_service_broker_local_registry_namespaces=['openshift','apb'] the openshift registry will be : - type: local_openshift name: localregistry white_list: [] namespaces: [openshift, apb] and asb pod starts successfully.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:2652