apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{obj_name}}
{% if labels is defined%}
  labels:
{% for key, value in labels.items() %}
    {{key}}: {{value}}
{% endfor %}
{% endif %}
{% if secrets is defined %}
secrets:
{% for name in secrets %}
- name: {{ name }}
{% endfor %}
{% endif %}
