Skip to content

Commit a85b236

Browse files
committed
Show pod details information on the agent status report page
1 parent 1106558 commit a85b236

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

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

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,53 @@
4747
<div class="tabs">
4848
<div class="tab">
4949
<input name="agent-information" type="radio" id="pod-details" class="checkboxtab pod-details" checked>
50-
<label for="pod-details">Tab 1</label>
50+
<label for="pod-details">Pod Details</label>
5151
<dl class="content">
52-
This is the content of tab 1
52+
<dt>Pod Name:</dt>
53+
<dd>${ podDetails.name !}</dd>
54+
<dt>Cluster Name:</dt>
55+
<dd>${ podDetails.clusterName !}</dd>
56+
<dt>Node Name:</dt>
57+
<dd>${ podDetails.nodeName !}</dd>
58+
<dt>Namespace:</dt>
59+
<dd>${ podDetails.namespace !}</dd>
60+
61+
<dt>Creation Timestamp:</dt>
62+
<dd>${ podDetails.createdAt !}</dd>
63+
<dt>Start Timestamp:</dt>
64+
<dd>${ podDetails.startedAt !}</dd>
65+
66+
<dt>Status:</dt>
67+
<dd>${ podDetails.phase !}</dd>
68+
69+
<dt>Pod IP:</dt>
70+
<dd>${ podDetails.podIP !}</dd>
71+
<dt>Host IP:</dt>
72+
<dd>${ podDetails.hostIP !}</dd>
73+
74+
<dt>Conditions:</dt>
75+
<dd>
76+
<table>
77+
<thead>
78+
<tr>
79+
<th>Last Transition Time</th>
80+
<th>Last Probe Time</th>
81+
<th>Type</th>
82+
<th>Status</th>
83+
</thead>
84+
</tr>
85+
<tbody>
86+
<#list podDetails.conditions as condition>
87+
<tr>
88+
<td>${condition.lastTransitionTime!}</td>
89+
<td>${condition.lastProbeTime!}</td>
90+
<td>${condition.type!}</td>
91+
<td>${condition.status!}</td>
92+
</tr>
93+
</#list>
94+
</tbody>
95+
</table>
96+
</dd>
5397
</dl>
5498
</div>
5599

0 commit comments

Comments
 (0)