forked from openshift/origin-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlifecycle-hook.html
85 lines (85 loc) · 4.27 KB
/
lifecycle-hook.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<h4>
{{type | upperFirst}} Hook
<span ng-switch="type">
<small ng-switch-when="pre">– runs before the deployment begins</small>
<small ng-switch-when="mid">– runs after the previous deployment is scaled down to zero and before the first pod of the new deployment is created</small>
<small ng-switch-when="post">– runs after the deployment strategy completes</small>
</span>
</h4>
<dl class="dl-horizontal left">
<dt>Action:</dt>
<dd>{{strategyParams[type].execNewPod ? "Run a command" : "Tag the image"}}</dd>
<dt>Failure Policy:</dt>
<dd>{{strategyParams[type].failurePolicy}}
<span class="help action-inline">
<a href ng-switch="strategyParams[type].failurePolicy">
<i ng-switch-when="Ignore" class="pficon pficon-help" data-toggle="tooltip" aria-hidden="true" data-original-title="Continue with deployment on failure"></i>
<i ng-switch-when="Abort" class="pficon pficon-help" data-toggle="tooltip" aria-hidden="true" data-original-title="Abort deployment on failure"></i>
<i ng-switch-when="Retry" class="pficon pficon-help" data-toggle="tooltip" aria-hidden="true" data-original-title="Retry the hook until it succeeds"></i>
</a>
</span>
</dd>
<div ng-if="strategyParams[type].execNewPod">
<h5 class="container-name">Container {{strategyParams[type].execNewPod.containerName}}</h5>
<dl class="dl-horizontal left">
<dt>Command:</dt>
<dd>
<code class="command">
<span ng-repeat="arg in strategyParams[type].execNewPod.command">
<truncate-long-text content="arg" limit="80" newline-limit="1" expandable="false" use-word-boundary="false"></truncate-long-text>
</span>
</code>
</dd>
<dt ng-if-start="strategyParams[type].execNewPod.env">Environment Variables:</dt>
<dd ng-if-end>
<div ng-repeat="env in strategyParams[type].execNewPod.env">
<div ng-if="env.valueFrom.configMapKeyRef || env.valueFrom.secretKeyRef">
{{env.name}} set to key
<span ng-if="env.valueFrom.configMapKeyRef">
{{env.valueFrom.configMapKeyRef.key}} in config map
<span
ng-if="!('configmaps' | canI : 'get')">
{{env.valueFrom.configMapKeyRef.name}}
</span>
<a
ng-if="'configmaps' | canI : 'get'"
ng-href="{{env.valueFrom.configMapKeyRef.name | navigateResourceURL : 'ConfigMap' : deploymentConfig.metadata.namespace}}">
{{env.valueFrom.configMapKeyRef.name}}
</a>
</span>
<span ng-if="env.valueFrom.secretKeyRef">
{{env.valueFrom.secretKeyRef.key}} in secret
<span
ng-if="!('secrets' | canI : 'get')">
{{env.valueFrom.secretKeyRef.name}}
</span>
<a
ng-if="'secrets' | canI : 'get'"
ng-href="{{env.valueFrom.secretKeyRef.name | navigateResourceURL : 'Secret' : deploymentConfig.metadata.namespace}}">
{{env.valueFrom.secretKeyRef.name}}
</a>
</span>
</div>
<div ng-if="!env.valueFrom" class="truncate" ng-attr-title="{{env.value}}">
{{env.name}}={{env.value}}
</div>
</div>
</dd>
<dt ng-if-start="strategyParams[type].execNewPod.volumes">Volumes:</dt>
<dd ng-if-end>
<div ng-repeat="volume in strategyParams[type].execNewPod.volumes">
{{volume}}
</div>
</dd>
</dl>
</div>
<div ng-if="strategyParams[type].tagImages">
<div ng-repeat="tagImage in strategyParams[type].tagImages">
<h5 class="container-name">Container {{tagImage.containerName}}</h5>
<dl class="dl-horizontal left">
<div>Tag image as <a ng-if="!tagImage.to.namespace || tagImage.to.namespace === deploymentConfig.metadata.namespace" ng-href="{{tagImage.to.name | navigateResourceURL : 'ImageStreamTag' : deploymentConfig.metadata.namespace}}">{{tagImage.to | imageObjectRef : deploymentConfig.metadata.namespace}}</a>
<span ng-if="tagImage.to.namespace && tagImage.to.namespace !== deploymentConfig.metadata.namespace">{{tagImage.to | imageObjectRef : deploymentConfig.metadata.namespace}}</span></div>
</dl>
</div>
</div>
</dl>