2018-09-21 00:48:18 +00:00
|
|
|
<td class="is-narrow">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#unless this.task.driverStatus.healthy}}
|
|
|
|
<span data-test-icon="unhealthy-driver" class="tooltip text-center" aria-label="{{this.task.driver}} is unhealthy">
|
2020-10-26 21:52:25 +00:00
|
|
|
{{x-icon "alert-triangle" class="is-warning"}}
|
2018-09-21 00:48:18 +00:00
|
|
|
</span>
|
2020-07-09 17:30:11 +00:00
|
|
|
{{/unless}}
|
2018-09-21 00:48:18 +00:00
|
|
|
</td>
|
2019-09-04 14:39:56 +00:00
|
|
|
<td data-test-name class="nowrap">
|
2020-07-09 20:19:07 +00:00
|
|
|
<LinkTo @route="allocations.allocation.task" @models={{array this.task.allocation this.task}} class="is-primary">
|
|
|
|
{{this.task.name}}
|
|
|
|
{{#if this.task.isConnectProxy}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<ProxyTag @class="bumper-left" />
|
2019-09-04 14:39:56 +00:00
|
|
|
{{/if}}
|
2020-06-01 19:03:56 +00:00
|
|
|
</LinkTo>
|
2018-09-21 00:48:18 +00:00
|
|
|
</td>
|
2020-07-09 20:19:07 +00:00
|
|
|
<td data-test-state>{{this.task.state}}</td>
|
2018-09-21 00:48:18 +00:00
|
|
|
<td data-test-message>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.task.events.lastObject.message}}
|
|
|
|
{{this.task.events.lastObject.message}}
|
2018-09-21 00:48:18 +00:00
|
|
|
{{else}}
|
|
|
|
<em>No message</em>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
2020-07-09 20:19:07 +00:00
|
|
|
<td data-test-time>{{format-ts this.task.events.lastObject.time}}</td>
|
2020-02-13 06:14:28 +00:00
|
|
|
<td data-test-volumes>
|
|
|
|
<ul>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#each this.task.task.volumeMounts as |volume|}}
|
2020-02-13 06:14:28 +00:00
|
|
|
<li data-test-volume>
|
|
|
|
<strong>{{volume.volume}}:</strong>
|
2020-03-25 12:51:26 +00:00
|
|
|
{{#if volume.isCSI}}
|
2020-11-13 20:44:34 +00:00
|
|
|
<LinkTo @route="csi.volumes.volume" @model={{volume.source}} @query={{hash volumeNamespace=volume.namespace.id}}>
|
2020-03-25 12:51:26 +00:00
|
|
|
{{volume.source}}
|
2020-06-01 19:03:56 +00:00
|
|
|
</LinkTo>
|
2020-03-25 12:51:26 +00:00
|
|
|
{{else}}
|
|
|
|
{{volume.source}}
|
|
|
|
{{/if}}
|
2020-02-13 06:14:28 +00:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</td>
|
2018-09-21 00:48:18 +00:00
|
|
|
<td data-test-cpu class="is-1 has-text-centered">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.task.isRunning}}
|
|
|
|
{{#if (and (not this.cpu) this.fetchStats.isRunning)}}
|
2018-12-10 23:25:48 +00:00
|
|
|
...
|
2020-07-09 20:19:07 +00:00
|
|
|
{{else if this.statsError}}
|
2018-12-10 23:25:48 +00:00
|
|
|
<span class="tooltip text-center" role="tooltip" aria-label="Couldn't collect stats">
|
2020-10-26 21:52:25 +00:00
|
|
|
{{x-icon "alert-triangle" class="is-warning"}}
|
2018-12-10 23:25:48 +00:00
|
|
|
</span>
|
|
|
|
{{else}}
|
2021-03-29 23:16:48 +00:00
|
|
|
<div class="inline-chart is-small tooltip" role="tooltip" aria-label="{{format-hertz this.cpu.used}} / {{format-hertz this.taskStats.reservedCPU}}">
|
2018-12-10 23:25:48 +00:00
|
|
|
<progress
|
|
|
|
class="progress is-info is-small"
|
2020-07-09 20:19:07 +00:00
|
|
|
value="{{this.cpu.percent}}"
|
2018-12-10 23:25:48 +00:00
|
|
|
max="1">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{this.cpu.percent}}
|
2018-12-10 23:25:48 +00:00
|
|
|
</progress>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-09-21 00:48:18 +00:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
<td data-test-mem class="is-1 has-text-centered">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.task.isRunning}}
|
|
|
|
{{#if (and (not this.memory) this.fetchStats.isRunning)}}
|
2018-12-10 23:25:48 +00:00
|
|
|
...
|
2020-07-09 20:19:07 +00:00
|
|
|
{{else if this.statsError}}
|
2018-12-10 23:25:48 +00:00
|
|
|
<span class="tooltip is-small text-center" role="tooltip" aria-label="Couldn't collect stats">
|
2020-10-26 21:52:25 +00:00
|
|
|
{{x-icon "alert-triangle" class="is-warning"}}
|
2018-12-10 23:25:48 +00:00
|
|
|
</span>
|
|
|
|
{{else}}
|
2021-03-29 23:16:48 +00:00
|
|
|
<div class="inline-chart tooltip" role="tooltip" aria-label="{{format-scheduled-bytes this.memory.used}} / {{format-scheduled-bytes this.taskStats.reservedMemory}}">
|
2018-12-10 23:25:48 +00:00
|
|
|
<progress
|
|
|
|
class="progress is-danger is-small"
|
2020-07-09 20:19:07 +00:00
|
|
|
value="{{this.memory.percent}}"
|
2018-12-10 23:25:48 +00:00
|
|
|
max="1">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{this.memory.percent}}
|
2018-12-10 23:25:48 +00:00
|
|
|
</progress>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-09-21 00:48:18 +00:00
|
|
|
{{/if}}
|
|
|
|
</td>
|