serviceaccount.j2 297 B

12345678910111213141516
  1. apiVersion: v1
  2. kind: ServiceAccount
  3. metadata:
  4. name: {{obj_name}}
  5. {% if labels is defined%}
  6. labels:
  7. {% for key, value in labels.items() %}
  8. {{key}}: {{value}}
  9. {% endfor %}
  10. {% endif %}
  11. {% if secrets is defined %}
  12. secrets:
  13. {% for name in secrets %}
  14. - name: {{ name }}
  15. {% endfor %}
  16. {% endif %}