diff --git a/openshift/templates/django-postgresql-persistent.json b/openshift/templates/django-postgresql-persistent.json index 7a0ab21..8c18978 100644 --- a/openshift/templates/django-postgresql-persistent.json +++ b/openshift/templates/django-postgresql-persistent.json @@ -105,7 +105,7 @@ "from": { "kind": "ImageStreamTag", "namespace": "${NAMESPACE}", - "name": "python:3.5" + "name": "python:${PYTHON_VERSION}" }, "env": [ { @@ -437,6 +437,13 @@ "description": "The OpenShift Namespace where the ImageStream resides.", "value": "openshift" }, + { + "name": "PYTHON_VERSION", + "displayName": "Version of Python Image", + "description": "Version of Python image to be used (3.4, 3.5, 3.6 or latest).", + "value": "3.6", + "required": true + }, { "name": "MEMORY_LIMIT", "displayName": "Memory Limit", diff --git a/openshift/templates/django-postgresql.json b/openshift/templates/django-postgresql.json index be3fc74..e52839d 100644 --- a/openshift/templates/django-postgresql.json +++ b/openshift/templates/django-postgresql.json @@ -105,7 +105,7 @@ "from": { "kind": "ImageStreamTag", "namespace": "${NAMESPACE}", - "name": "python:3.5" + "name": "python:${PYTHON_VERSION}" }, "env": [ { @@ -418,6 +418,13 @@ "description": "The OpenShift Namespace where the ImageStream resides.", "value": "openshift" }, + { + "name": "PYTHON_VERSION", + "displayName": "Version of Python Image", + "description": "Version of Python image to be used (3.4, 3.5, 3.6 or latest).", + "value": "3.6", + "required": true + }, { "name": "MEMORY_LIMIT", "displayName": "Memory Limit", diff --git a/openshift/templates/django.json b/openshift/templates/django.json index dffe4f8..1b1fb9d 100644 --- a/openshift/templates/django.json +++ b/openshift/templates/django.json @@ -102,7 +102,7 @@ "from": { "kind": "ImageStreamTag", "namespace": "${NAMESPACE}", - "name": "python:3.5" + "name": "python:${PYTHON_VERSION}" }, "env": [ { @@ -248,6 +248,13 @@ "description": "The OpenShift Namespace where the ImageStream resides.", "value": "openshift" }, + { + "name": "PYTHON_VERSION", + "displayName": "Version of Python Image", + "description": "Version of Python image to be used (3.4, 3.5, 3.6 or latest).", + "value": "3.6", + "required": true + }, { "name": "MEMORY_LIMIT", "displayName": "Memory Limit",