forked from openshift/origin-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_edit-probe.html
126 lines (126 loc) · 4.85 KB
/
_edit-probe.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<ng-form name="form">
<div class="form-group">
<label class="required">Type</label>
<ui-select ng-model="selected.type" required search-enabled="false">
<ui-select-match>{{$select.selected.label}}</ui-select-match>
<ui-select-choices repeat="item.id as item in types">{{item.label}}</ui-select-choices>
</ui-select>
</div>
<fieldset ng-if="selected.type === 'httpGet'">
<div class="form-group">
<div class="checkbox">
<label>
<input
type="checkbox"
ng-model="probe.httpGet.scheme"
ng-true-value=" 'HTTPS' "
ng-false-value=" 'HTTP' ">
Use HTTPS
</label>
</div>
</div>
<div class="form-group">
<label ng-attr-for="{{id}}-path">Path</label>
<div>
<input
ng-attr-id="{{id}}-path"
ng-model="probe.httpGet.path"
type="text"
placeholder="/"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
class="form-control">
</div>
</div>
<div class="form-group">
<label class="required">Port</label>
<ui-select ng-model="probe.httpGet.port" required>
<ui-select-match>{{$select.selected.containerPort}}</ui-select-match>
<ui-select-choices
repeat="port.containerPort as port in portOptions"
refresh="refreshPorts($select.search, $select.selected)"
refresh-delay="200">{{port.containerPort}}</ui-select-choices>
</ui-select>
</div>
</fieldset>
<fieldset ng-if="selected.type === 'exec'">
<label class="required">Command</label>
<edit-command args="probe.exec.command" is-required="true"></edit-command>
</fieldset>
<fieldset ng-if="selected.type === 'tcpSocket'">
<div class="form-group">
<label class="required">Port</label>
<ui-select ng-model="probe.tcpSocket.port" required>
<ui-select-match>{{$select.selected.containerPort}}</ui-select-match>
<ui-select-choices
repeat="port.containerPort as port in portOptions"
refresh="refreshPorts($select.search, $select.selected)"
refresh-delay="200">{{port.containerPort}}</ui-select-choices>
</ui-select>
</div>
</fieldset>
<div class="form-group">
<label ng-attr-for="{{id}}-initial-delay">Initial Delay</label>
<span class="input-group"
ng-class="{ 'has-error': form.initialDelaySeconds.$invalid && form.initialDelaySeconds.$touched }">
<input
type="number"
name="initialDelaySeconds"
ng-model="probe.initialDelaySeconds"
ng-pattern="/^\d+$/"
min="0"
select-on-focus
ng-attr-id="{{id}}-initial-delay"
class="form-control"
ng-attr-aria-describedby="{{id}}-delay-description">
<span class="input-group-addon">seconds</span>
</span>
<div class="help-block" ng-attr-id="{{id}}-delay-description">
How long to wait after the container starts before checking its health.
</div>
<div ng-if="form.initialDelaySeconds.$invalid && form.initialDelaySeconds.$touched" class="has-error">
<div ng-if="form.initialDelaySeconds.$error.number" class="help-block">
Must be a number.
</div>
<div ng-if="form.initialDelaySeconds.$error.min" class="help-block">
Delay can't be negative.
</div>
<span ng-if="form.initialDelaySeconds.$error.pattern && !form.initialDelaySeconds.$error.min" class="help-block">
Must be a whole number.
</span>
</div>
</div>
<div class="form-group">
<label ng-attr-for="{{id}}-timeout">Timeout</label>
<span class="input-group"
ng-class="{ 'has-error': form.timeoutSeconds.$invalid && form.timeoutSeconds.$touched }">
<input
type="number"
name="timeoutSeconds"
ng-model="probe.timeoutSeconds"
ng-pattern="/^\d+$/"
min="1"
placeholder="1"
select-on-focus
ng-attr-id="{{id}}-timeout"
class="form-control"
ng-attr-aria-describedby="{{id}}-timeout-description">
<span class="input-group-addon">seconds</span>
</span>
<div class="help-block" ng-attr-id="{{id}}-timeout-description">
How long to wait for the probe to finish. If the time is exceeded, the probe is considered failed.
</div>
<div ng-if="form.timeoutSeconds.$invalid && form.timeoutSeconds.$touched" class="has-error">
<div ng-if="form.timeoutSeconds.$error.number" class="help-block">
Must be a number.
</div>
<div ng-if="form.timeoutSeconds.$error.min" class="help-block">
Timeout must be greater than or equal to one.
</div>
<span ng-if="form.timeoutSeconds.$error.pattern && !form.timeoutSeconds.$error.min" class="help-block">
Must be a whole number.
</span>
</div>
</div>
</ng-form>