@@ -247,6 +247,39 @@ <h3>Volumes</h3>
247
247
< span class ="action-divider " aria-hidden ="true "> |</ span >
248
248
< a ng-href ="project/{{project.metadata.name}}/add-config-volume?kind=DeploymentConfig&name={{deploymentConfig.metadata.name}} "> Add Config Files</ a >
249
249
</ p >
250
+ < h3 > Triggers</ h3 >
251
+ < dl class ="dl-horizontal left ">
252
+ < dt > Manual (CLI):
253
+ < a href ="{{'deployment-operations' | helpLink}} " target ="_blank ">
254
+ < span class ="learn-more-block "> Learn More < i class ="fa fa-external-link " aria-hidden ="true "> </ i > </ span >
255
+ </ a >
256
+ </ dt >
257
+ < dd >
258
+ < copy-to-clipboard clipboard-text ="'oc rollout latest dc/' + deploymentConfig.metadata.name + ' -n ' + project.metadata.name "> </ copy-to-clipboard >
259
+ </ dd >
260
+ < div ng-repeat ="trigger in deploymentConfig.spec.triggers ">
261
+ < span ng-switch ="trigger.type ">
262
+ < span ng-switch-default > {{trigger.type}}</ span >
263
+ < span ng-switch-when ="ImageChange " ng-if ="trigger.imageChangeParams.from ">
264
+ < dt > New Image For:</ dt >
265
+ < dd >
266
+ {{trigger.imageChangeParams.from | imageObjectRef : deploymentConfig.metadata.namespace}}
267
+ < small ng-if ="!trigger.imageChangeParams.automatic " class ="text-muted "> (disabled)</ small >
268
+ </ dd >
269
+ </ span >
270
+ < span ng-switch-when ="ConfigChange ">
271
+ < dt > Change Of:</ dt >
272
+ < dd > Config</ dd >
273
+ </ span >
274
+ </ span >
275
+ </ div >
276
+ </ dl >
277
+ <!-- Service Bindings -->
278
+ < resource-service-bindings
279
+ project ="project "
280
+ project-context ="projectContext "
281
+ api-object ="deploymentConfig ">
282
+ </ resource-service-bindings >
250
283
</ div >
251
284
252
285
<!-- Autoscaling -->
@@ -277,68 +310,28 @@ <h3>Autoscaling</h3>
277
310
< div ng-repeat ="hpa in autoscalers ">
278
311
< hpa hpa ="hpa " project ="project " show-scale-target ="false " alerts ="alerts "> </ hpa >
279
312
</ div >
280
- </ div >
281
313
282
- < div class ="col-lg-6 " ng-if ="deploymentConfig.spec.strategy.type !== 'Custom' ">
283
- < h3 >
284
- Hooks
285
- < span class ="learn-more-inline ">
286
- < a ng-href ="{{'lifecycle_hooks' | helpLink}} " target ="_blank "> Learn More < i class ="fa fa-external-link " aria-hidden ="true "> </ i > </ a >
287
- </ span >
288
- </ h3 >
289
- < div ng-if ="strategyParams.pre ">
290
- < lifecycle-hook deployment-config ="deploymentConfig " type ="pre "> </ lifecycle-hook >
291
- </ div >
292
- < div ng-if ="strategyParams.mid ">
293
- < lifecycle-hook deployment-config ="deploymentConfig " type ="mid "> </ lifecycle-hook >
294
- </ div >
295
- < div ng-if ="strategyParams.post ">
296
- < lifecycle-hook deployment-config ="deploymentConfig " type ="post "> </ lifecycle-hook >
297
- </ div >
298
- < div ng-if ="!strategyParams.pre && !strategyParams.mid && !strategyParams.post ">
299
- none
300
- </ div >
301
- </ div >
302
-
303
- < div class ="col-lg-6 ">
304
- < h3 > Triggers</ h3 >
305
- < dl class ="dl-horizontal left ">
306
- < dt > Manual (CLI):
307
- < a href ="{{'deployment-operations' | helpLink}} " target ="_blank ">
308
- < span class ="learn-more-block "> Learn More < i class ="fa fa-external-link " aria-hidden ="true "> </ i > </ span >
309
- </ a >
310
- </ dt >
311
- < dd >
312
- < copy-to-clipboard clipboard-text ="'oc rollout latest dc/' + deploymentConfig.metadata.name + ' -n ' + project.metadata.name "> </ copy-to-clipboard >
313
- </ dd >
314
- < div ng-repeat ="trigger in deploymentConfig.spec.triggers ">
315
- < span ng-switch ="trigger.type ">
316
- < span ng-switch-default > {{trigger.type}}</ span >
317
- < span ng-switch-when ="ImageChange " ng-if ="trigger.imageChangeParams.from ">
318
- < dt > New Image For:</ dt >
319
- < dd >
320
- {{trigger.imageChangeParams.from | imageObjectRef : deploymentConfig.metadata.namespace}}
321
- < small ng-if ="!trigger.imageChangeParams.automatic " class ="text-muted "> (disabled)</ small >
322
- </ dd >
323
- </ span >
324
- < span ng-switch-when ="ConfigChange ">
325
- < dt > Change Of:</ dt >
326
- < dd > Config</ dd >
327
- </ span >
314
+ < div ng-if ="deploymentConfig.spec.strategy.type !== 'Custom' ">
315
+ < h3 >
316
+ Hooks
317
+ < span class ="learn-more-inline ">
318
+ < a ng-href ="{{'lifecycle_hooks' | helpLink}} " target ="_blank "> Learn More < i class ="fa fa-external-link " aria-hidden ="true "> </ i > </ a >
328
319
</ span >
320
+ </ h3 >
321
+ < div ng-if ="strategyParams.pre ">
322
+ < lifecycle-hook deployment-config ="deploymentConfig " type ="pre "> </ lifecycle-hook >
329
323
</ div >
330
- </ dl >
331
- </ div >
332
-
333
- <!-- Service Bindings -- >
334
- < div class =" col-lg-6 " >
335
- < resource-service-bindings
336
- project =" project "
337
- project-context =" projectContext "
338
- api-object =" deploymentConfig " >
339
- </ resource-service-bindings >
324
+ < div ng-if =" strategyParams.mid " >
325
+ < lifecycle-hook deployment-config =" deploymentConfig " type =" mid " > </ lifecycle-hook >
326
+ </ div >
327
+ < div ng-if =" strategyParams.post " >
328
+ < lifecycle-hook deployment-config =" deploymentConfig " type =" post " > </ lifecycle-hook >
329
+ </ div >
330
+ < p ng-if =" !strategyParams.pre && !strategyParams.mid && !strategyParams.post " >
331
+ none
332
+ </ p >
333
+ </ div >
340
334
</ div >
341
-
342
335
</ div >
343
336
< annotations annotations ="deploymentConfig.metadata.annotations "> </ annotations >
344
337
</ div >
0 commit comments