mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-27 22:03:11 +00:00
* Move label templates into `common` role So that there is single source of labels management, and labels are unified across the other roles * Introduce `additional_labels` * Fix paths for labels templates * Return `additional_labels_items` as list * Add molecule tests
19 lines
590 B
Django/Jinja
19 lines
590 B
Django/Jinja
{% if projects_persistence|bool and projects_existing_claim == '' %}
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: '{{ ansible_operator_meta.name }}-projects-claim'
|
|
namespace: '{{ ansible_operator_meta.namespace }}'
|
|
labels:
|
|
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
|
|
spec:
|
|
accessModes:
|
|
- {{ projects_storage_access_mode }}
|
|
resources:
|
|
requests:
|
|
storage: {{ projects_storage_size }}
|
|
{% if projects_storage_class is defined %}
|
|
storageClassName: {{ projects_storage_class }}
|
|
{% endif %}
|
|
{% endif %}
|