@@ -8,7 +8,7 @@ <h1 class="contains-actions">
8
8
< div class ="pull-right dropdown " ng-if ="deploymentConfig " ng-hide ="!('deploymentConfigs' | canIDoAny) ">
9
9
<!-- Primary Actions -->
10
10
< button
11
- ng-if ="'deploymentconfigs/instantiate' | canI : 'create' "
11
+ ng-if ="deploymentConfigsInstantiateVersion | canI : 'create' "
12
12
class ="btn btn-default hidden-xs "
13
13
ng-click ="startLatestDeployment() "
14
14
ng-disabled ="!canDeploy() ">
@@ -24,49 +24,49 @@ <h1 class="contains-actions">
24
24
class ="dropdown-toggle actions-dropdown-kebab visible-xs-inline "
25
25
data-toggle ="dropdown "> < i class ="fa fa-ellipsis-v "> </ i > < span class ="sr-only "> Actions</ span > </ a >
26
26
< ul class ="dropdown-menu dropdown-menu-right actions action-button ">
27
- < li class ="visible-xs-inline " ng-class ="{ disabled: !canDeploy() } " ng-if ="'deploymentconfigs/instantiate' | canI : 'create' ">
27
+ < li class ="visible-xs-inline " ng-class ="{ disabled: !canDeploy() } " ng-if ="deploymentConfigsInstantiateVersion | canI : 'create' ">
28
28
< a href =""
29
29
role ="button "
30
30
ng-attr-aria-disabled ="{{canDeploy() ? undefined : 'true'}} "
31
31
ng-class ="{ 'disabled-link': !canDeploy() } "
32
32
ng-click ="startLatestDeployment() "> Deploy</ a >
33
33
</ li >
34
- < li ng-if ="'deploymentconfigs' | canI : 'update' ">
34
+ < li ng-if ="deploymentConfigsVersion | canI : 'update' ">
35
35
< a ng-href ="{{deploymentConfig | editResourceURL}} " role ="button "> Edit</ a >
36
36
</ li >
37
- < li class ="divider " ng-if ="'deploymentconfigs' | canI : 'update' "> </ li >
38
- < li ng-if ="!deploymentConfig.spec.paused && !updatingPausedState && ('deploymentconfigs' | canI : 'update') ">
37
+ < li class ="divider " ng-if ="deploymentConfigsVersion | canI : 'update' "> </ li >
38
+ < li ng-if ="!deploymentConfig.spec.paused && !updatingPausedState && (deploymentConfigsVersion | canI : 'update') ">
39
39
< a href ="" ng-click ="setPaused(true) " role ="button "> Pause Rollouts</ a >
40
40
</ li >
41
- < li ng-if ="deploymentConfig.spec.paused && !updatingPausedState && ('deploymentconfigs' | canI : 'update') ">
41
+ < li ng-if ="deploymentConfig.spec.paused && !updatingPausedState && (deploymentConfigsVersion | canI : 'update') ">
42
42
< a href ="" ng-click ="setPaused(false) " role ="button "> Resume Rollouts</ a >
43
43
</ li >
44
- < li ng-if ="'deploymentconfigs' | canI : 'update' ">
44
+ < li ng-if ="deploymentConfigsVersion | canI : 'update' ">
45
45
< a ng-href ="project/{{project.metadata.name}}/attach-pvc?kind=DeploymentConfig&name={{deploymentConfig.metadata.name}} "
46
46
role ="button "> Add Storage</ a >
47
47
</ li >
48
- < li ng-if ="!autoscalers.length && ({resource: 'horizontalpodautoscalers', group: 'autoscaling'} | canI : 'create') ">
48
+ < li ng-if ="!autoscalers.length && (horizontalPodAutoscalersVersion | canI : 'create') ">
49
49
<!-- Create a new HPA. -->
50
50
< a ng-href ="project/{{projectName}}/edit/autoscaler?kind=DeploymentConfig&name={{deploymentConfig.metadata.name}} "
51
51
role ="button "> Add Autoscaler</ a >
52
52
</ li >
53
- < li ng-if ="autoscalers.length === 1 && ({resource: 'horizontalpodautoscalers', group: 'autoscaling'} | canI : 'update') ">
53
+ < li ng-if ="autoscalers.length === 1 && (horizontalPodAutoscalersVersion | canI : 'update') ">
54
54
<!-- Edit an existing HPA. -->
55
55
< a ng-href ="project/{{projectName}}/edit/autoscaler?kind=HorizontalPodAutoscaler&group=autoscaling&name={{autoscalers[0].metadata.name}} "
56
56
role ="button "> Edit Autoscaler</ a >
57
57
</ li >
58
- < li ng-if ="'deploymentconfigs' | canI : 'update' ">
58
+ < li ng-if ="deploymentConfigsVersion | canI : 'update' ">
59
59
< a ng-href ="project/{{projectName}}/set-limits?kind=DeploymentConfig&name={{deploymentConfig.metadata.name}} "
60
60
role ="button "> Edit Resource Limits</ a >
61
61
</ li >
62
- < li ng-if ="'deploymentconfigs' | canI : 'update' ">
62
+ < li ng-if ="deploymentConfigsVersion | canI : 'update' ">
63
63
< a ng-href ="{{healthCheckURL}} " role ="button "> Edit Health Checks</ a >
64
64
</ li >
65
- < li ng-if ="'deploymentconfigs' | canI : 'update' ">
65
+ < li ng-if ="deploymentConfigsVersion | canI : 'update' ">
66
66
< a ng-href ="{{deploymentConfig | editYamlURL}} " role ="button "> Edit YAML</ a >
67
67
</ li >
68
- < li class ="divider " ng-if ="'deploymentconfigs' | canI : 'update' "> </ li >
69
- < li ng-if ="'deploymentconfigs' | canI : 'delete' ">
68
+ < li class ="divider " ng-if ="deploymentConfigsVersion | canI : 'update' "> </ li >
69
+ < li ng-if ="deploymentConfigsVersion | canI : 'delete' ">
70
70
< delete-link
71
71
kind ="DeploymentConfig "
72
72
resource-name ="{{deploymentConfig.metadata.name}} "
@@ -94,7 +94,7 @@ <h1 class="contains-actions">
94
94
< span class ="pficon pficon-info " aria-hidden ="true "> </ span >
95
95
< strong > {{deploymentConfig.metadata.name}} is paused.</ strong >
96
96
This will stop any new rollouts or triggers from running until resumed.
97
- < span ng-if ="!updatingPausedState && ('deploymentconfigs' | canI : 'update') " class ="nowrap ">
97
+ < span ng-if ="!updatingPausedState && (deploymentConfigsVersion | canI : 'update') " class ="nowrap ">
98
98
< a href ="" ng-click ="setPaused(false) " role ="button "> Resume Rollouts</ a >
99
99
</ span >
100
100
</ div >
@@ -230,19 +230,19 @@ <h3>Template</h3>
230
230
images-by-docker-reference ="imagesByDockerReference "
231
231
builds ="builds "
232
232
detailed ="true "
233
- add-health-check-url ="{{('deploymentconfigs' | canI : 'update') ? healthCheckURL : ''}} ">
233
+ add-health-check-url ="{{(deploymentConfigsVersion | canI : 'update') ? healthCheckURL : ''}} ">
234
234
</ pod-template >
235
235
< h3 > Volumes</ h3 >
236
- < p ng-if ="!deploymentConfig.spec.template.spec.volumes.length && !('deploymentconfigs' | canI : 'update') ">
236
+ < p ng-if ="!deploymentConfig.spec.template.spec.volumes.length && !(deploymentConfigsVersion | canI : 'update') ">
237
237
none
238
238
</ p >
239
239
< volumes
240
240
volumes ="deploymentConfig.spec.template.spec.volumes "
241
241
namespace ="project.metadata.name "
242
- can-remove ="'deploymentconfigs' | canI : 'update' "
242
+ can-remove ="deploymentConfigsVersion | canI : 'update' "
243
243
remove-fn ="removeVolume(volume) ">
244
244
</ volumes >
245
- < p ng-if ="'deploymentconfigs' | canI : 'update' ">
245
+ < p ng-if ="deploymentConfigsVersion | canI : 'update' ">
246
246
< a ng-href ="project/{{project.metadata.name}}/attach-pvc?kind=DeploymentConfig&name={{deploymentConfig.metadata.name}} "> Add Storage</ a >
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 >
@@ -261,16 +261,16 @@ <h3>Autoscaling</h3>
261
261
262
262
<!-- If the CPU request is missing, add an action to set one. -->
263
263
< a ng-href ="project/{{projectName}}/set-limits?kind=DeploymentConfig&name={{deploymentConfig.metadata.name}} "
264
- ng-if ="warning.reason === 'NoCPURequest' && ('deploymentconfigs' | canI : 'update') "
264
+ ng-if ="warning.reason === 'NoCPURequest' && (deploymentConfigsVersion | canI : 'update') "
265
265
role ="button "> Edit Resource
266
266
< span ng-if ="!('cpu' | isRequestCalculated : project) "> Requests and</ span > Limits</ a >
267
267
</ div >
268
268
269
269
<!-- Create autoscaler -->
270
270
< div ng-if ="!autoscalers.length ">
271
- < a ng-if ="{resource: 'horizontalpodautoscalers', group: 'autoscaling'} | canI : 'create' " ng-href ="project/{{projectName}}/edit/autoscaler?kind=DeploymentConfig&name={{deploymentConfig.metadata.name}} "
271
+ < a ng-if ="horizontalPodAutoscalersVersion | canI : 'create' " ng-href ="project/{{projectName}}/edit/autoscaler?kind=DeploymentConfig&name={{deploymentConfig.metadata.name}} "
272
272
role ="button "> Add Autoscaler</ a >
273
- < span ng-if ="!({resource: 'horizontalpodautoscalers', group: 'autoscaling'} | canI : 'create') "> Autoscaling is not enabled. There are no autoscalers for this deployment config.</ span >
273
+ < span ng-if ="!(horizontalPodAutoscalersVersion | canI : 'create') "> Autoscaling is not enabled. There are no autoscalers for this deployment config.</ span >
274
274
</ div >
275
275
276
276
<!-- HPA details -->
@@ -347,7 +347,7 @@ <h3>Triggers</h3>
347
347
< uib-tab-heading > Environment</ uib-tab-heading >
348
348
< edit-environment-variables api-object ="deploymentConfig "> </ edit-environment-variables >
349
349
</ uib-tab >
350
- < uib-tab active ="selectedTab.events " ng-if ="'events' | canI : 'watch' ">
350
+ < uib-tab active ="selectedTab.events " ng-if ="eventsVersion | canI : 'watch' ">
351
351
< uib-tab-heading > Events</ uib-tab-heading >
352
352
< events api-objects ="[ deploymentConfig ] " project-context ="projectContext " ng-if ="selectedTab.events "> </ events >
353
353
</ uib-tab >
0 commit comments