2
2
"kind" : " Template" ,
3
3
"apiVersion" : " v1" ,
4
4
"metadata" : {
5
- "name" : " dotnet" ,
5
+ "name" : " dotnet-example " ,
6
6
"annotations" : {
7
7
"openshift.io/display-name" : " .NET Core" ,
8
- "description" : " Template for creating .NET Core service " ,
8
+ "description" : " An example .NET Core application. " ,
9
9
"tags" : " quickstart,dotnet,.net" ,
10
10
"iconClass" : " icon-dotnet" ,
11
11
"template.openshift.io/provider-display-name" : " Red Hat, Inc." ,
14
14
}
15
15
},
16
16
"objects" : [
17
+ {
18
+ "kind" : " Route" ,
19
+ "apiVersion" : " v1" ,
20
+ "metadata" : {
21
+ "name" : " ${NAME}"
22
+ },
23
+ "spec" : {
24
+ "host" : " ${APPLICATION_DOMAIN}" ,
25
+ "to" : {
26
+ "kind" : " Service" ,
27
+ "name" : " ${NAME}"
28
+ }
29
+ }
30
+ },
17
31
{
18
32
"kind" : " Service" ,
19
33
"apiVersion" : " v1" ,
213
227
"displayName" : " Name" ,
214
228
"description" : " The name assigned to all of the frontend objects defined in this template." ,
215
229
"required" : true ,
216
- "value" : " dotnet-service "
230
+ "value" : " dotnet-example "
217
231
},
218
232
{
219
233
"name" : " MEMORY_LIMIT" ,
246
260
{
247
261
"name" : " SOURCE_REPOSITORY_REF" ,
248
262
"displayName" : " Git Reference" ,
249
- "description" : " Set this to a branch name, tag or other ref of your repository if you are not using the default branch."
263
+ "description" : " Set this to a branch name, tag or other ref of your repository if you are not using the default branch." ,
264
+ "value" : " dotnetcore-1.0"
250
265
},
251
266
{
252
267
"name" : " CONTEXT_DIR" ,
253
268
"displayName" : " Context Directory" ,
254
- "description" : " Set this to the relative path to your project if it is not in the root of your repository."
269
+ "description" : " Set this to use a subdirectory of the source code repository"
270
+ },
271
+ {
272
+ "name" : " APPLICATION_DOMAIN" ,
273
+ "displayName" : " Application Hostname" ,
274
+ "description" : " The exposed hostname that will route to the Node.js service, if left blank a value will be defaulted." ,
275
+ "value" : " "
255
276
},
256
277
{
257
278
"name" : " GITHUB_WEBHOOK_SECRET" ,
295
316
"value" : " Release"
296
317
}
297
318
]
298
- }
319
+ }
0 commit comments