Allow user to specify empty string for storage class on PVC

This commit is contained in:
Christian M. Adams
2021-05-17 12:15:03 -04:00
parent 7b7965d506
commit 818b837fb2
2 changed files with 1 additions and 2 deletions

View File

@@ -167,7 +167,6 @@ tower_postgres_storage_requirements:
requests:
storage: 8Gi
tower_postgres_resource_requirements: {}
tower_postgres_storage_class: ''
tower_postgres_data_path: '/var/lib/postgresql/data/pgdata'
# Persistence to the AWX project data folder

View File

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