mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 22:33:35 +00:00
Default to storage class being undefined
* This is so that users can intentially set it to an empty string if they want to use the default storage class * conversely, now users can manually create a pvc that does not utilize the default storage class
This commit is contained in:
@@ -10,6 +10,3 @@ backup_pvc_namespace: "{{ meta.namespace }}"
|
|||||||
|
|
||||||
# Size of backup PVC if created dynamically
|
# Size of backup PVC if created dynamically
|
||||||
backup_storage_requirements: ''
|
backup_storage_requirements: ''
|
||||||
|
|
||||||
# Specify storage class to determine how to dynamically create PVC's with
|
|
||||||
backup_storage_class: ''
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
{% if backup_storage_class != '' %}
|
{% if backup_storage_class is defined %}
|
||||||
storageClassName: {{ backup_storage_class }}
|
storageClassName: {{ backup_storage_class }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
@@ -178,7 +178,6 @@ tower_projects_existing_claim: ''
|
|||||||
#
|
#
|
||||||
# Define the storage_class, size and access_mode
|
# Define the storage_class, size and access_mode
|
||||||
# when not using an existing claim
|
# when not using an existing claim
|
||||||
tower_projects_storage_class: ''
|
|
||||||
tower_projects_storage_size: 8Gi
|
tower_projects_storage_size: 8Gi
|
||||||
tower_projects_storage_access_mode: ReadWriteMany
|
tower_projects_storage_access_mode: ReadWriteMany
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ tower_projects_storage_size }}
|
storage: {{ tower_projects_storage_size }}
|
||||||
{% if tower_projects_storage_class != '' %}
|
{% if tower_projects_storage_class is defined %}
|
||||||
storageClassName: {{ tower_projects_storage_class }}
|
storageClassName: {{ tower_projects_storage_class }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user