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

5 lines
232 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 %}