81bf4f9304
* cri-o registry auth support * yaml lint for comments * crio_registry_auth from registry_auth * crio_registry_auth as defaults
17 lines
330 B
Django/Jinja
17 lines
330 B
Django/Jinja
{% if crio_registry_auth is defined and crio_registry_auth|length %}
|
|
{
|
|
{% for reg in crio_registry_auth %}
|
|
"auths": {
|
|
"{{ reg.registry }}": {
|
|
"auth": "{{ (reg.username + ':' + reg.password) | string | b64encode }}"
|
|
}
|
|
{% if not loop.last %}
|
|
},
|
|
{% else %}
|
|
}
|
|
{% endif %}
|
|
{% endfor %}
|
|
}
|
|
{% else %}
|
|
{}
|
|
{% endif %}
|