Merge pull request #318 from rooftopcellist/storage_class_empty

Default to storage class being undefined
This commit is contained in:
Christian Adams
2021-05-17 16:52:09 -04:00
committed by GitHub
4 changed files with 2 additions and 6 deletions

View File

@@ -10,6 +10,3 @@ backup_pvc_namespace: "{{ meta.namespace }}"
# Size of backup PVC if created dynamically
backup_storage_requirements: ''
# Specify storage class to determine how to dynamically create PVC's with
backup_storage_class: ''

View File

@@ -7,7 +7,7 @@ metadata:
spec:
accessModes:
- ReadWriteOnce
{% if backup_storage_class != '' %}
{% if backup_storage_class is defined %}
storageClassName: {{ backup_storage_class }}
{% endif %}
resources:

View File

@@ -178,7 +178,6 @@ tower_projects_existing_claim: ''
#
# Define the storage_class, size and access_mode
# when not using an existing claim
tower_projects_storage_class: ''
tower_projects_storage_size: 8Gi
tower_projects_storage_access_mode: ReadWriteMany

View File

@@ -16,7 +16,7 @@ spec:
resources:
requests:
storage: {{ tower_projects_storage_size }}
{% if tower_projects_storage_class != '' %}
{% if tower_projects_storage_class is defined %}
storageClassName: {{ tower_projects_storage_class }}
{% endif %}
{% endif %}