-
Notifications
You must be signed in to change notification settings - Fork 31
/
profile.template.html
263 lines (238 loc) · 12.5 KB
/
profile.template.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
<!--
~ Copyright 2018 ThoughtWorks, Inc.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<div data-plugin-style-id="kubernetes-plugin">
<style>
[data-plugin-style-id="kubernetes-plugin"] .tooltip-info {
position: relative;
display: inline-block;
cursor: pointer;
}
[data-plugin-style-id="kubernetes-plugin"] .tooltip-info .tooltip-content {
font-family: "Open Sans", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
cursor: auto;
font-size: 0.78rem;
text-transform: none;
background-color: #efefef;
border: 1px solid #cacaca;
border-radius: 3px;
display: block;
padding: 1rem;
position: absolute;
visibility: hidden;
width: 500px;
z-index: 10;
top: 100%;
color: #000;
}
[data-plugin-style-id="kubernetes-plugin"] .tooltip-info:after {
font-family: 'FontAwesome';
content: "\f05a";
font-weight: normal;
font-style: normal;
display: inline-block;
text-decoration: inherit;
line-height: 1.8;
font-size: 0.875rem;
color: #0a0a0a;
-webkit-font-smoothing: antialiased;
margin: 0 10px;
}
[data-plugin-style-id="kubernetes-plugin"] .tooltip-info:hover .tooltip-content {
visibility: visible;
}
[data-plugin-style-id="kubernetes-plugin"] .tooltip-info .tooltip-content-right {
right: 0;
}
[data-plugin-style-id="kubernetes-plugin"] code {
border: none;
background: #ddd;
border-radius: 3px;
color: inherit;
}
[data-plugin-style-id="kubernetes-plugin"] textarea {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
[data-plugin-style-id="kubernetes-plugin"] .highlight {
background: #f0f0f0;
}
[data-plugin-style-id="kubernetes-plugin"] .code {
font-family: Consolas, "Liberation Mono", Courier, monospace;
padding: 16px;
overflow: auto;
font-size: 0.8125rem;
line-height: 1.45;
background-color: #e6e6e6;
border-radius: 3px;
}
[data-plugin-style-id="kubernetes-plugin"] .form-help-content {
color: #666;
font-style: italic;
clear: both;
font-size: 0.82rem;
}
</style>
<div class="row collapse">
<label>Specify Elastic Agent Pod Configuration using</label>
<div class="form_error form-error row" ng-class="{'is-visible': GOINPUTNAME[PodSpecType].$error.server}" ng-show="GOINPUTNAME[PodSpecType].$error.server" style="padding-top: 10px">{{GOINPUTNAME[PodSpecType].$error.server}}</div>
<div class="form_item_block row" style="padding-top: 10px">
<div class="columns small-9 medium-10 larger-10"
ng-init="PodSpecType = PodSpecType || (SpecifiedUsingPodConfiguration == 'true' && 'properties') || 'yaml'">
<input type="radio" ng-model="PodSpecType" value="properties"
id="properties"/>
<label for="properties">Config Properties</label>
<input type="radio" ng-model="PodSpecType" value="yaml"
id="yaml"/>
<label for="yaml">Pod Yaml</label>
<input type="radio" ng-model="PodSpecType" value="remote"
id="remote"/>
<label for="remote">Remote file</label>
</div>
</div>
</div>
<div ng-show="PodSpecType == 'properties'">
<div class="row">
<div class="columns medium-6 large-5">
<label ng-class="{'is-invalid-label': GOINPUTNAME[Image].$error.server}">Image:
<span class="asterix">*</span>
</label>
<input ng-class="{'is-invalid-input': GOINPUTNAME[Image].$error.server}" type="text" ng-model="Image"
ng-required="true" placeholder="alpine:latest"/>
<span class="form_error form-error" ng-class="{'is-visible': GOINPUTNAME[Image].$error.server}"
ng-show="GOINPUTNAME[Image].$error.server">{{GOINPUTNAME[Image].$error.server}}</span>
</div>
<div class="columns medium-4 large-3 end">
<label ng-class="{'is-invalid-label': GOINPUTNAME[MaxMemory].$error.server}">Maximum Memory limit:
<div class="tooltip-info">
<span class="tooltip-content tooltip-content-right">
The maximum amount of memory the container is allowed to use. This field take a positive integer,
followed by a suffix of B, K, M, G and T to indicate bytes, kilobytes, megabytes, gigabytes or terabytes.<br/>
<a href="https://docs.docker.com/engine/admin/resource_constraints/"
target="_blank">Read more about memory</a>
</span>
</div>
</label>
<input ng-class="{'is-invalid-input': GOINPUTNAME[MaxMemory].$error.server}" type="text"
ng-model="MaxMemory" ng-required="false"/>
<span class="form_error form-error" ng-class="{'is-visible': GOINPUTNAME[MaxMemory].$error.server}"
ng-show="GOINPUTNAME[MaxMemory].$error.server">{{GOINPUTNAME[MaxMemory].$error.server}}</span>
</div>
<div class="columns medium-4 large-3 end">
<label ng-class="{'is-invalid-label': GOINPUTNAME[MaxCPU].$error.server}">Maximum CPU limit:
<div class="tooltip-info">
<span class="tooltip-content tooltip-content-right">
The maximum amount of cpu units the container is allowed to use. This field take a positive integer.<br/>
<a href="https://docs.docker.com/engine/admin/resource_constraints/#cpu/"
target="_blank">Read more about memory</a>
</span>
</div>
</label>
<input ng-class="{'is-invalid-input': GOINPUTNAME[MaxCPU].$error.server}" type="text" ng-model="MaxCPU"
ng-required="false"/>
<span class="form_error form-error" ng-class="{'is-visible': GOINPUTNAME[MaxCPU].$error.server}"
ng-show="GOINPUTNAME[MaxCPU].$error.server">{{GOINPUTNAME[MaxCPU].$error.server}}</span>
</div>
</div>
<div class="form_item_block">
<input ng-class="{'is-invalid-input': GOINPUTNAME[Privileged].$error.server}" type="checkbox" ng-model="Privileged" ng-required="true" ng-true-value="true" ng-false-value="false" id="Privileged"/>
<label ng-class="{'is-invalid-label': GOINPUTNAME[Privileged].$error.server}" for="Privileged">Privileged</label>
<span class="form_error form-error" ng-class="{'is-visible': GOINPUTNAME[Privileged].$error.server}" ng-show="GOINPUTNAME[Privileged].$error.server">{{GOINPUTNAME[Privileged].$error.server}}</span>
<span class="form-help-content">
<strong>Note:</strong> When privileged mode is enabled, the container is given elevated privileges on the host container instance.
</span>
</div>
<div class="form_item_block">
<label ng-class="{'is-invalid-label': GOINPUTNAME[Environment].$error.server}">Environment Variables
<small>(Enter one variable per line)</small>
<div class="tooltip-info">
<span class="tooltip-content">
Specify the environment variables. This allows you to override the <code>ENV</code> that is specified in
the <code>Dockerfile</code>, or provide new environment variables in case the <code>Dockerfile</code> does not
contain any <code>ENV</code>.
<br/>
<div class="code">
JAVA_HOME=/opt/java<br/>
ANT_HOME=/opt/ant
</div>
<a href="https://docs.docker.com/engine/reference/builder/#env"
target="_blank">Read more about <code>ENV</code></a>
</span>
</div>
</label>
<textarea ng-class="{'is-invalid-input': GOINPUTNAME[Environment].$error.server}" ng-model="Environment"
ng-required="false" rows="7"></textarea>
<span class="form_error form-error" ng-class="{'is-visible': GOINPUTNAME[Environment].$error.server}"
ng-show="GOINPUTNAME[Environment].$error.server">{{GOINPUTNAME[Environment].$error.server}}</span>
</div>
</div>
<div ng-show="PodSpecType == 'yaml'">
<div class="form_item_block">
<label ng-class="{'is-invalid-label': GOINPUTNAME[PodConfiguration].$error.server}">Specify Elastic Agent
<code>pod.yaml</code> here
<div class="tooltip-info">
<span class="tooltip-content">
Specify the pod.yaml configuration. This allows you to specify advance options for elastic agent pod such as
<code>command</code>, <code>args</code>, <code>volumes</code>, <code>secrets</code>, <code>configMaps</code> etc.
<br/>
<a href="https://kubernetes-v1-4.github.io/docs/user-guide/pods/multi-container/#pod-configuration-file"
target="_blank">Read more about <code>Pod Yaml</code></a>
</span>
</div>
</label>
<textarea class="highlight" ng-class="{'is-invalid-input': GOINPUTNAME[PodConfiguration].$error.server}"
ng-model="PodConfiguration"
ng-required="false" rows="9" columns="15" ng-init="PodConfiguration = (PodConfiguration || 'apiVersion: v1
kind: Pod
metadata:
name: pod-name-prefix-{{ POD_POSTFIX }}
labels:
app: web
spec:
containers:
- name: gocd-agent-container-{{ CONTAINER_POSTFIX }}
image: {{ GOCD_AGENT_IMAGE }}:{{ LATEST_VERSION }}
securityContext:
privileged: true')">
</textarea>
<span class="form_error form-error" ng-class="{'is-visible': GOINPUTNAME[PodConfiguration].$error.server}"
ng-show="GOINPUTNAME[PodConfiguration].$error.server">{{GOINPUTNAME[PodConfiguration].$error.server}}</span>
</div>
</div>
<div ng-show="PodSpecType == 'remote'">
<div class="form_item_block">
<label ng-class="{'is-invalid-label': GOINPUTNAME[RemoteFileType].$error.server}">File Type: <span class="asterix">*</span></label>
<div class="row" style="padding-top: 10px">
<div class="columns small-9 medium-10 larger-10"
ng-init="RemoteFileType = RemoteFileType || 'json'">
<input type="radio" ng-model="RemoteFileType" value="json"
id="file_type_json"/>
<label for="file_type_json">Json</label>
<input type="radio" ng-model="RemoteFileType" value="yaml"
id="file_type_yaml"/>
<label for="file_type_yaml">Yaml</label>
</div>
</div>
</div>
<div class="form_item_block">
<label ng-class="{'is-invalid-label': GOINPUTNAME[RemoteFile].$error.server}">File Location:
<span class="asterix">*</span>
</label>
<input ng-class="{'is-invalid-input': GOINPUTNAME[RemoteFile].$error.server}" type="text" ng-model="RemoteFile"
ng-required="true" placeholder="https://raw.githubusercontent.com/gocd/pod_specs/basic_agent.json"/>
<span class="form_error form-error" ng-class="{'is-visible': GOINPUTNAME[RemoteFile].$error.server}"
ng-show="GOINPUTNAME[RemoteFile].$error.server">{{GOINPUTNAME[RemoteFile].$error.server}}</span>
</div>
</div>
</div>