From c266beafabb5cce6530cd3d2b7649c51868ac3ad Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Fri, 22 Dec 2017 13:12:41 +0100 Subject: [PATCH] Add POSTGRESQL_VERSION parameter to the templates --- openshift/templates/django-postgresql-persistent.json | 9 ++++++++- openshift/templates/django-postgresql.json | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/openshift/templates/django-postgresql-persistent.json b/openshift/templates/django-postgresql-persistent.json index 8c18978..1d7c3fa 100644 --- a/openshift/templates/django-postgresql-persistent.json +++ b/openshift/templates/django-postgresql-persistent.json @@ -329,7 +329,7 @@ "from": { "kind": "ImageStreamTag", "namespace": "${NAMESPACE}", - "name": "postgresql:9.5" + "name": "postgresql:${POSTGRESQL_VERSION}" } } }, @@ -444,6 +444,13 @@ "value": "3.6", "required": true }, + { + "name": "POSTGRESQL_VERSION", + "displayName": "Version of PostgreSQL Image", + "description": "Version of PostgreSQL image to be used (9.4, 9.5, 9.6 or latest).", + "value": "9.6", + "required": true + }, { "name": "MEMORY_LIMIT", "displayName": "Memory Limit", diff --git a/openshift/templates/django-postgresql.json b/openshift/templates/django-postgresql.json index e52839d..159df36 100644 --- a/openshift/templates/django-postgresql.json +++ b/openshift/templates/django-postgresql.json @@ -312,7 +312,7 @@ "from": { "kind": "ImageStreamTag", "namespace": "${NAMESPACE}", - "name": "postgresql:9.5" + "name": "postgresql:${POSTGRESQL_VERSION}" } } }, @@ -425,6 +425,13 @@ "value": "3.6", "required": true }, + { + "name": "POSTGRESQL_VERSION", + "displayName": "Version of PostgreSQL Image", + "description": "Version of PostgreSQL image to be used (9.4, 9.5, 9.6 or latest).", + "value": "9.6", + "required": true + }, { "name": "MEMORY_LIMIT", "displayName": "Memory Limit",