secret.j2 343 B

123456789101112131415161718
  1. apiVersion: v1
  2. kind: Secret
  3. metadata:
  4. name: "{{ name }}"
  5. {% if annotations is defined%}
  6. annotations:
  7. {% for key, value in annotations.items() %}
  8. {{key}}: {{value}}
  9. {% endfor %}
  10. {% endif %}
  11. labels:
  12. {% for k, v in labels.items() %}
  13. {{ k }}: {{ v }}
  14. {% endfor %}
  15. data:
  16. {% for k, v in data.items() %}
  17. {{ k }}: {{ v }}
  18. {% endfor %}