def make_allowed_registries(registry_list):
    """ turns a list of wildcard registries to allowedRegistriesForImport json setting """
    return {
        "allowedRegistriesForImport": [
            {'domainName': reg} if isinstance(reg, str) else reg for reg in registry_list
        ]
    }