Skip to content

Commit

Permalink
parameterize imagestreamtag refs in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
bparees committed Apr 26, 2018
1 parent 93fc25f commit d416548
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
18 changes: 16 additions & 2 deletions openshift/templates/nodejs-mongodb-persistent.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"from": {
"kind": "ImageStreamTag",
"namespace": "${NAMESPACE}",
"name": "nodejs:6"
"name": "nodejs:${NODEJS_VERSION}"
},
"env": [
{
Expand Down Expand Up @@ -326,7 +326,7 @@
"from": {
"kind": "ImageStreamTag",
"namespace": "${NAMESPACE}",
"name": "mongodb:3.2"
"name": "mongodb:${MONGODB_VERSION}"
}
}
},
Expand Down Expand Up @@ -448,6 +448,20 @@
"required": true,
"value": "openshift"
},
{
"name": "NODEJS_VERSION",
"displayName": "Version of NodeJS Image",
"description": "Version of NodeJS image to be used (6, 8, or latest).",
"value": "8",
"required": true
},
{
"name": "MONGODB_VERSION",
"displayName": "Version of MongoDB Image",
"description": "Version of MongoDB image to be used (3.2, 3.4, or latest).",
"value": "3.4",
"required": true
},
{
"name": "MEMORY_LIMIT",
"displayName": "Memory Limit",
Expand Down
18 changes: 16 additions & 2 deletions openshift/templates/nodejs-mongodb.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"from": {
"kind": "ImageStreamTag",
"namespace": "${NAMESPACE}",
"name": "nodejs:6"
"name": "nodejs:${NODEJS_VERSION}"
},
"env": [
{
Expand Down Expand Up @@ -310,7 +310,7 @@
"from": {
"kind": "ImageStreamTag",
"namespace": "${NAMESPACE}",
"name": "mongodb:3.2"
"name": "mongodb:${MONGODB_VERSION}"
}
}
},
Expand Down Expand Up @@ -432,6 +432,20 @@
"required": true,
"value": "openshift"
},
{
"name": "NODEJS_VERSION",
"displayName": "Version of NodeJS Image",
"description": "Version of NodeJS image to be used (6, 8, or latest).",
"value": "8",
"required": true
},
{
"name": "MONGODB_VERSION",
"displayName": "Version of MongoDB Image",
"description": "Version of MongoDB image to be used (3.2, 3.4, or latest).",
"value": "3.4",
"required": true
},
{
"name": "MEMORY_LIMIT",
"displayName": "Memory Limit",
Expand Down
9 changes: 8 additions & 1 deletion openshift/templates/nodejs.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"from": {
"kind": "ImageStreamTag",
"namespace": "${NAMESPACE}",
"name": "nodejs:6"
"name": "nodejs:${NODEJS_VERSION}"
},
"env": [
{
Expand Down Expand Up @@ -231,6 +231,13 @@
"required": true,
"value": "openshift"
},
{
"name": "NODEJS_VERSION",
"displayName": "Version of NodeJS Image",
"description": "Version of NodeJS image to be used (6, 8, or latest).",
"value": "8",
"required": true
},
{
"name": "MEMORY_LIMIT",
"displayName": "Memory Limit",
Expand Down

0 comments on commit d416548

Please sign in to comment.