parameterize name
This commit is contained in:
parent
c7f0e817af
commit
ee1068b426
2 changed files with 38 additions and 24 deletions
|
@ -17,7 +17,7 @@
|
||||||
"kind": "Service",
|
"kind": "Service",
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nodejs-mongodb-example",
|
"name": "${NAME}",
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"description": "Exposes and load balances the application pods"
|
"description": "Exposes and load balances the application pods"
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"selector": {
|
"selector": {
|
||||||
"name": "nodejs-mongodb-example"
|
"name": "${NAME}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -39,13 +39,13 @@
|
||||||
"kind": "Route",
|
"kind": "Route",
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nodejs-mongodb-example"
|
"name": "${NAME}"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"host": "${APPLICATION_DOMAIN}",
|
"host": "${APPLICATION_DOMAIN}",
|
||||||
"to": {
|
"to": {
|
||||||
"kind": "Service",
|
"kind": "Service",
|
||||||
"name": "nodejs-mongodb-example"
|
"name": "${NAME}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
"kind": "ImageStream",
|
"kind": "ImageStream",
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nodejs-mongodb-example",
|
"name": "${NAME}",
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"description": "Keeps track of changes in the application image"
|
"description": "Keeps track of changes in the application image"
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
"kind": "BuildConfig",
|
"kind": "BuildConfig",
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nodejs-mongodb-example",
|
"name": "${NAME}",
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"description": "Defines how to build the application"
|
"description": "Defines how to build the application"
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
"output": {
|
"output": {
|
||||||
"to": {
|
"to": {
|
||||||
"kind": "ImageStreamTag",
|
"kind": "ImageStreamTag",
|
||||||
"name": "nodejs-mongodb-example:latest"
|
"name": "${NAME}:latest"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"triggers": [
|
"triggers": [
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
"kind": "DeploymentConfig",
|
"kind": "DeploymentConfig",
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nodejs-mongodb-example",
|
"name": "${NAME}",
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"description": "Defines how to deploy the application server"
|
"description": "Defines how to deploy the application server"
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,7 @@
|
||||||
],
|
],
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "ImageStreamTag",
|
"kind": "ImageStreamTag",
|
||||||
"name": "nodejs-mongodb-example:latest"
|
"name": "${NAME}:latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -148,13 +148,13 @@
|
||||||
],
|
],
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
"selector": {
|
"selector": {
|
||||||
"name": "nodejs-mongodb-example"
|
"name": "${NAME}"
|
||||||
},
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nodejs-mongodb-example",
|
"name": "${NAME}",
|
||||||
"labels": {
|
"labels": {
|
||||||
"name": "nodejs-mongodb-example"
|
"name": "${NAME}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
|
@ -336,6 +336,13 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
{
|
||||||
|
"name": "NAME",
|
||||||
|
"displayName": "Name",
|
||||||
|
"description": "The name assigned to all of the frontend objects defined in this template.",
|
||||||
|
"required": true,
|
||||||
|
"value": "nodejs-mongodb-example"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "MEMORY_LIMIT",
|
"name": "MEMORY_LIMIT",
|
||||||
"displayName": "Memory Limit",
|
"displayName": "Memory Limit",
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
"kind": "Service",
|
"kind": "Service",
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nodejs-example",
|
"name": "${NAME}",
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"description": "Exposes and load balances the application pods"
|
"description": "Exposes and load balances the application pods"
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"selector": {
|
"selector": {
|
||||||
"name": "nodejs-example"
|
"name": "${NAME}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -39,13 +39,13 @@
|
||||||
"kind": "Route",
|
"kind": "Route",
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nodejs-example"
|
"name": "${NAME}"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"host": "${APPLICATION_DOMAIN}",
|
"host": "${APPLICATION_DOMAIN}",
|
||||||
"to": {
|
"to": {
|
||||||
"kind": "Service",
|
"kind": "Service",
|
||||||
"name": "nodejs-example"
|
"name": "${NAME}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
"kind": "ImageStream",
|
"kind": "ImageStream",
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nodejs-example",
|
"name": "${NAME}",
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"description": "Keeps track of changes in the application image"
|
"description": "Keeps track of changes in the application image"
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
"kind": "BuildConfig",
|
"kind": "BuildConfig",
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nodejs-example",
|
"name": "${NAME}",
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"description": "Defines how to build the application"
|
"description": "Defines how to build the application"
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
"output": {
|
"output": {
|
||||||
"to": {
|
"to": {
|
||||||
"kind": "ImageStreamTag",
|
"kind": "ImageStreamTag",
|
||||||
"name": "nodejs-example:latest"
|
"name": "${NAME}:latest"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"triggers": [
|
"triggers": [
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
"kind": "DeploymentConfig",
|
"kind": "DeploymentConfig",
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nodejs-example",
|
"name": "${NAME}",
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"description": "Defines how to deploy the application server"
|
"description": "Defines how to deploy the application server"
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,7 @@
|
||||||
],
|
],
|
||||||
"from": {
|
"from": {
|
||||||
"kind": "ImageStreamTag",
|
"kind": "ImageStreamTag",
|
||||||
"name": "nodejs-example:latest"
|
"name": "${NAME}:latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -148,13 +148,13 @@
|
||||||
],
|
],
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
"selector": {
|
"selector": {
|
||||||
"name": "nodejs-example"
|
"name": "${NAME}"
|
||||||
},
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nodejs-example",
|
"name": "${NAME}",
|
||||||
"labels": {
|
"labels": {
|
||||||
"name": "nodejs-example"
|
"name": "${NAME}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
|
@ -223,6 +223,13 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
{
|
||||||
|
"name": "NAME",
|
||||||
|
"displayName": "Name",
|
||||||
|
"description": "The name assigned to all of the frontend objects defined in this template.",
|
||||||
|
"required": true,
|
||||||
|
"value": "nodejs-example"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "MEMORY_LIMIT",
|
"name": "MEMORY_LIMIT",
|
||||||
"displayName": "Memory Limit",
|
"displayName": "Memory Limit",
|
||||||
|
|
Loading…
Add table
Reference in a new issue