c12s-kubespray/roles/kubernetes/secrets/templates/known_users.csv.j2

3 lines
231 B
Django/Jinja

{% for user in kube_users %}
{{kube_users[user].pass}},{{user}},{{kube_users[user].role}}{% if kube_users[user].groups is defined %},{% set groups_csv = kube_users[user].groups|join(',') -%}"{{groups_csv}}"{% endif %}
{% endfor %}