unip-controller/controller/templates/basic-resources/secret.yaml

33 lines
958 B
YAML
Raw Permalink Normal View History

2025-01-29 13:13:51 +00:00
# ============================================================
# Система: Единая библиотека, Центр ИИ НИУ ВШЭ
# Модуль: Управления базовыми объектами Kubernetes
# Авторы: Полежаев В.А., Хританков А.С.
# Дата создания: 2024 г.
# ============================================================
apiVersion: v1
kind: Secret
metadata:
namespace: {{ namespace }}
name: {{ name }}
{% if labels %}
labels:
{% for label in labels %}
{{ label['key'] }}: "{{ label['value'] }}"
{% endfor %}
{% endif %}
{% if annotations %}
annotations:
{% for anno in annotations %}
{{ anno['key'] }}: "{{ anno['value'] }}"
{% endfor %}
{% endif %}
type: {{ type }}
{% if not data %}
{{ data_attr }}: {}
{% endif %}
{% if data %}
{{ data_attr }}:
{% for item in data %}
{{ item['key'] }}: {{ item['value'] }}
{% endfor %}
{% endif %}