Merge pull request #315 from rooftopcellist/allow_manual_pvc

Allow user to specify empty string for storage class on PVC
This commit is contained in:
Christian Adams
2021-05-17 12:27:26 -04:00
committed by GitHub
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 }}