Skip to content

Commit 0809b89

Browse files
committed
minor css change
1 parent 176267c commit 0809b89

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/main/java/cd/go/contrib/elasticagent/model/reports/agent/KubernetesElasticAgent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private static ArrayList<KubernetesPodEvent> getAllEventsForPod(Pod pod, Kuberne
7676

7777
private static String getPodLogs(Pod pod, KubernetesClient client) {
7878
return client.pods().inNamespace(Constants.KUBERNETES_NAMESPACE)
79-
.withName(pod.getMetadata().getName()).getLog();
79+
.withName(pod.getMetadata().getName()).getLog(true);
8080
}
8181

8282
private static String getPodConfiguration(Pod pod) {

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
background-color: white;
1818
left: 0px;
1919
width: 100%;
20+
height: 750px;
2021
border: 1px #000 solid;
22+
overflow-x: scroll;
2123
}
2224

2325
[data-plugin-style-id="kubernetes-plugin"] .checkboxtab {
@@ -36,13 +38,15 @@
3638
[data-plugin-style-id="kubernetes-plugin"] .checkboxtab:checked ~ .content {
3739
z-index: 1;
3840
}
41+
42+
[data-plugin-style-id="kubernetes-plugin"] .agent-name {
43+
padding: 10px;
44+
}
3945
</style>
4046

4147
<div data-plugin-style-id="kubernetes-plugin">
4248
<div class="kubernetes-elastic-agent">
43-
<div class="agent-name">
44-
This is the stasdedssddtus report page for${elasticAgentId!}
45-
</div>
49+
<h2 class="agent-name"> ${ elasticAgentId! } </h2>
4650

4751
<div class="tabs">
4852
<div class="tab">
@@ -115,10 +119,10 @@
115119
<dd>${ agentDetails.restartCount !}</dd>
116120

117121
<dt>Command:</dt>
118-
<dd>${ agentDetails.command !}</dd>
122+
<dd>${ agentDetails.command?html?replace("\n", "<br>") !}</dd>
119123

120124
<dt>Environment Variables:</dt>
121-
<dd>${ agentDetails.env !}</dd>
125+
<dd>${ agentDetails.env?html?replace("\n", "<br>") !}</dd>
122126

123127
</dl>
124128
</div>
@@ -165,13 +169,13 @@
165169
<div class="tab">
166170
<input name="agent-information" type="radio" id="pod-logs" class="checkboxtab">
167171
<label for="pod-logs">Logs</label>
168-
<dl class="content"> ${ logs !} </dl>
172+
<dl class="content"> ${ logs?html?replace("\n", "<br>") !} </dl>
169173
</div>
170174

171175
<div class="tab">
172176
<input name="agent-information" type="radio" id="pod-configuration" class="checkboxtab">
173177
<label for="pod-configuration">Configuration</label>
174-
<dl class="content"> ${ configuration !} </dl>
178+
<dl class="content"> ${ configuration?html?replace("\n", "<br>") !} </dl>
175179
</div>
176180
</div>
177181
</div>

0 commit comments

Comments
 (0)