kubespray/roles/container-engine/cri-o/templates/config.json.j2

18 lines
329 B
Plaintext
Raw Normal View History

{% if crio_registry_auth is defined and crio_registry_auth|length %}
2023-02-06 17:35:16 +08:00
{
{% 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 %}