mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-28 22:33:10 +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
513 B
Django/Jinja
19 lines
513 B
Django/Jinja
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: {{ deployment_name }}-backup-claim
|
|
namespace: {{ backup_pvc_namespace }}
|
|
ownerReferences: null
|
|
labels:
|
|
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
{% if backup_storage_class is defined %}
|
|
storageClassName: {{ backup_storage_class }}
|
|
{% endif %}
|
|
resources:
|
|
requests:
|
|
storage: {{ backup_storage_requirements | default('5Gi', true) }}
|