secret.j2 279 B

123456789101112131415
  1. apiVersion: v1
  2. kind: Secret
  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. type: Opaque
  12. data:
  13. {% for s in secrets %}
  14. "{{s.key}}" : "{{s.value | b64encode}}"
  15. {% endfor %}