{% if crio_registry_auth is defined and crio_registry_auth|length %} { "auths": { {% for reg in crio_registry_auth %} "{{ reg.registry }}": { "auth": "{{ (reg.username + ':' + reg.password) | string | b64encode }}" {% if not loop.last %} }, {% else %} } {% endif %} {% endfor %} } } {% else %} {} {% endif %}