Add PYTHON_VERSION parameter to the templates

This commit is contained in:
Honza Horak 2017-12-22 11:05:59 +01:00
parent c5fcbb2df6
commit 5d5de63310
3 changed files with 24 additions and 3 deletions

View file

@ -105,7 +105,7 @@
"from": { "from": {
"kind": "ImageStreamTag", "kind": "ImageStreamTag",
"namespace": "${NAMESPACE}", "namespace": "${NAMESPACE}",
"name": "python:3.5" "name": "python:${PYTHON_VERSION}"
}, },
"env": [ "env": [
{ {
@ -437,6 +437,13 @@
"description": "The OpenShift Namespace where the ImageStream resides.", "description": "The OpenShift Namespace where the ImageStream resides.",
"value": "openshift" "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", "name": "MEMORY_LIMIT",
"displayName": "Memory Limit", "displayName": "Memory Limit",

View file

@ -105,7 +105,7 @@
"from": { "from": {
"kind": "ImageStreamTag", "kind": "ImageStreamTag",
"namespace": "${NAMESPACE}", "namespace": "${NAMESPACE}",
"name": "python:3.5" "name": "python:${PYTHON_VERSION}"
}, },
"env": [ "env": [
{ {
@ -418,6 +418,13 @@
"description": "The OpenShift Namespace where the ImageStream resides.", "description": "The OpenShift Namespace where the ImageStream resides.",
"value": "openshift" "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", "name": "MEMORY_LIMIT",
"displayName": "Memory Limit", "displayName": "Memory Limit",

View file

@ -102,7 +102,7 @@
"from": { "from": {
"kind": "ImageStreamTag", "kind": "ImageStreamTag",
"namespace": "${NAMESPACE}", "namespace": "${NAMESPACE}",
"name": "python:3.5" "name": "python:${PYTHON_VERSION}"
}, },
"env": [ "env": [
{ {
@ -248,6 +248,13 @@
"description": "The OpenShift Namespace where the ImageStream resides.", "description": "The OpenShift Namespace where the ImageStream resides.",
"value": "openshift" "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", "name": "MEMORY_LIMIT",
"displayName": "Memory Limit", "displayName": "Memory Limit",