Skip to content

Commit 2975e85

Browse files
committed
Add pod details and gocd agent container details on status report page
1 parent 263a6f4 commit 2975e85

File tree

1 file changed

+98
-12
lines changed

1 file changed

+98
-12
lines changed

src/main/resources/agent-status-report.template.ftlh

Lines changed: 98 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
padding: 60px 20px 0 20px;
44
}
55

6-
[data-plugin-style-id="kubernetes-plugin"] .header {
6+
[data-plugin-style-id="kubernetes-plugin"] .sub-nav {
77
padding-left: 25px;
88
}
99

10+
[data-plugin-style-id="kubernetes-plugin"] .header {
11+
margin: 25px 0 10px 3px;
12+
font-weight: 600;
13+
text-decoration: underline;
14+
}
15+
1016
[data-plugin-style-id="kubernetes-plugin"] .tabs {
1117
position: relative;
1218
clear: both;
@@ -71,13 +77,16 @@
7177
}
7278

7379
[data-plugin-style-id="kubernetes-plugin"] .tab-content {
74-
background: #fff;
7580
margin-top: 0;
76-
margin: 20px;
7781
height: calc(100vh - 280px);
7882
overflow-x: hidden;
7983
}
8084

85+
[data-plugin-style-id="kubernetes-plugin"] .tab-content-outer {
86+
background: white;
87+
padding: 20px;
88+
}
89+
8190
[data-plugin-style-id="kubernetes-plugin"] .pod-events table {
8291
width: calc(100% - 40px);
8392
min-width: 95%;
@@ -107,12 +116,41 @@
107116
text-overflow: ellipsis;
108117
overflow: hidden;
109118
}
119+
120+
[data-plugin-style-id="kubernetes-plugin"] dl.properties {
121+
overflow: hidden;
122+
margin: 0;
123+
font-size: 14px;
124+
vertical-align: top;
125+
font-family: "Open Sans", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
126+
color: #484848;
127+
}
128+
129+
[data-plugin-style-id="kubernetes-plugin"] .properties dt {
130+
float: left;
131+
clear: both;
132+
text-align: left;
133+
min-width: 200px;
134+
font-weight: 600;
135+
margin: 0;
136+
padding: 3px;
137+
min-height: 20px;
138+
line-height: 1.5;
139+
}
140+
141+
[data-plugin-style-id="kubernetes-plugin"] .properties dd {
142+
margin-left: 200px;
143+
min-height: 20px;
144+
padding: 3px;
145+
line-height: 1.5;
146+
}
147+
110148
</style>
111149

112150
<div data-plugin-style-id="kubernetes-plugin">
113151
<div class="row">
114152
<div class="header-panel">
115-
<header class="page-header header">
153+
<header class="page-header sub-nav">
116154
<f.row>
117155
<f.column size={6}>
118156
<h1>${ elasticAgentId! }</h1>
@@ -142,8 +180,55 @@
142180
</ul>
143181
</div>
144182

145-
<div class="tab-content" ng-show="currenttab == 'pod-details'"></div>
146-
<div class="tab-content pod-events" ng-show="currenttab == 'pod-events'">
183+
<div class="tab-content-outer">
184+
<div class="tab-content" ng-show="currenttab == 'pod-details'">
185+
<h4 class="header">Pod Details</h4>
186+
<dl class="properties">
187+
<dt>Pod Name:</dt>
188+
<dd>${ podDetails.name !}</dd>
189+
<dt>Cluster Name:</dt>
190+
<dd>${ podDetails.clusterName !}</dd>
191+
<dt>Node Name:</dt>
192+
<dd>${ podDetails.nodeName !}</dd>
193+
<dt>Namespace:</dt>
194+
<dd>${ podDetails.namespace !}</dd>
195+
196+
<dt>Creation Timestamp:</dt>
197+
<dd>${ podDetails.createdAt !}</dd>
198+
<dt>Start Timestamp:</dt>
199+
<dd>${ podDetails.startedAt !}</dd>
200+
201+
<dt>Status:</dt>
202+
<dd>${ podDetails.phase !}</dd>
203+
204+
<dt>Pod IP:</dt>
205+
<dd>${ podDetails.podIP !}</dd>
206+
<dt>Host IP:</dt>
207+
<dd>${ podDetails.hostIP !}</dd>
208+
</dl>
209+
<h4 class="header">GoCD Agent Details</h4>
210+
<dl class="properties">
211+
<dt>Name:</dt>
212+
<dd>${ agentDetails.name !}</dd>
213+
<dt>Image:</dt>
214+
<dd>${ agentDetails.image !}</dd>
215+
<dt>ImagePullPolicy:</dt>
216+
<dd>${ agentDetails.imagePullPolicy !}</dd>
217+
218+
<dt>Ready:</dt>
219+
<dd>${ agentDetails.ready !}</dd>
220+
221+
<dt>Restart Count:</dt>
222+
<dd>${ agentDetails.restartCount !}</dd>
223+
224+
<dt>Command:</dt>
225+
<dd>${ agentDetails.command?html?replace("\n", "<br>") !}</dd>
226+
227+
<dt>Environment Variables:</dt>
228+
<dd>${ agentDetails.env?html?replace("\n", "<br>") !}</dd>
229+
</dl>
230+
</div>
231+
<div class="tab-content pod-events" ng-show="currenttab == 'pod-events'">
147232
<#if events?size != 0>
148233
<table>
149234
<thead>
@@ -177,12 +262,13 @@
177262
<td colspan="5" class="message">No events available for the current pod.</td>
178263
</tr>
179264
</#if>
180-
</div>
181-
<div class="tab-content pod-logs" ng-show="currenttab == 'pod-logs'">
182-
${ logs?html?replace("\n", "<br>") !}
183-
</div>
184-
<div class="tab-content pod-configuration" ng-show="currenttab == 'pod-configuration'">
185-
${ configuration?html?replace("\n", "<br>") !}
265+
</div>
266+
<div class="tab-content pod-logs" ng-show="currenttab == 'pod-logs'">
267+
${ logs?html?replace("\n", "<br>") !}
268+
</div>
269+
<div class="tab-content pod-configuration" ng-show="currenttab == 'pod-configuration'">
270+
${ configuration?html?replace("\n", "<br>") !}
271+
</div>
186272
</div>
187273
</div>
188274
</div>

0 commit comments

Comments
 (0)