2018-09-21 00:48:18 +00:00
|
|
|
<td class="is-narrow">
|
|
|
|
{{#if (not task.driverStatus.healthy)}}
|
|
|
|
<span data-test-icon="unhealthy-driver" class="tooltip text-center" aria-label="{{task.driver}} is unhealthy">
|
|
|
|
{{x-icon "warning" class="is-warning"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
2019-09-04 14:39:56 +00:00
|
|
|
<td data-test-name class="nowrap">
|
2020-06-01 19:03:56 +00:00
|
|
|
<LinkTo @route="allocations.allocation.task" @models={{array task.allocation task}} class="is-primary">
|
2018-09-21 00:48:18 +00:00
|
|
|
{{task.name}}
|
2019-09-04 14:39:56 +00:00
|
|
|
{{#if 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>
|
|
|
|
<td data-test-state>{{task.state}}</td>
|
|
|
|
<td data-test-message>
|
|
|
|
{{#if task.events.lastObject.message}}
|
|
|
|
{{task.events.lastObject.message}}
|
|
|
|
{{else}}
|
|
|
|
<em>No message</em>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
2019-01-31 06:44:43 +00:00
|
|
|
<td data-test-time>{{format-ts task.events.lastObject.time}}</td>
|
2020-02-13 06:14:28 +00:00
|
|
|
<td data-test-volumes>
|
|
|
|
<ul>
|
|
|
|
{{#each task.task.volumeMounts as |volume|}}
|
|
|
|
<li data-test-volume>
|
|
|
|
<strong>{{volume.volume}}:</strong>
|
2020-03-25 12:51:26 +00:00
|
|
|
{{#if volume.isCSI}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<LinkTo @route="csi.volumes.volume" @model={{volume.volume}} @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-ports>
|
|
|
|
<ul>
|
2020-02-13 06:14:28 +00:00
|
|
|
{{#let task.resources.networks.firstObject as |network|}}
|
2019-09-04 14:39:56 +00:00
|
|
|
{{#each network.ports as |port|}}
|
2018-09-21 00:48:18 +00:00
|
|
|
<li data-test-port>
|
2019-09-04 14:39:56 +00:00
|
|
|
<strong>{{port.name}}:</strong>
|
|
|
|
<a href="http://{{network.ip}}:{{port.port}}" target="_blank" rel="noopener noreferrer">{{network.ip}}:{{port.port}}</a>
|
2018-09-21 00:48:18 +00:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
2020-02-13 06:14:28 +00:00
|
|
|
{{/let}}
|
2018-09-21 00:48:18 +00:00
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
<td data-test-cpu class="is-1 has-text-centered">
|
2018-12-10 23:25:48 +00:00
|
|
|
{{#if task.isRunning}}
|
|
|
|
{{#if (and (not cpu) fetchStats.isRunning)}}
|
|
|
|
...
|
|
|
|
{{else if statsError}}
|
|
|
|
<span class="tooltip text-center" role="tooltip" aria-label="Couldn't collect stats">
|
|
|
|
{{x-icon "warning" class="is-warning"}}
|
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<div class="inline-chart is-small tooltip" role="tooltip" aria-label="{{cpu.used}} / {{taskStats.reservedCPU}} MHz">
|
|
|
|
<progress
|
|
|
|
class="progress is-info is-small"
|
|
|
|
value="{{cpu.percent}}"
|
|
|
|
max="1">
|
|
|
|
{{cpu.percent}}
|
|
|
|
</progress>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-09-21 00:48:18 +00:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
<td data-test-mem class="is-1 has-text-centered">
|
2018-12-10 23:25:48 +00:00
|
|
|
{{#if task.isRunning}}
|
|
|
|
{{#if (and (not memory) fetchStats.isRunning)}}
|
|
|
|
...
|
|
|
|
{{else if statsError}}
|
|
|
|
<span class="tooltip is-small text-center" role="tooltip" aria-label="Couldn't collect stats">
|
|
|
|
{{x-icon "warning" class="is-warning"}}
|
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<div class="inline-chart tooltip" role="tooltip" aria-label="{{format-bytes memory.used}} / {{taskStats.reservedMemory}} MiB">
|
|
|
|
<progress
|
|
|
|
class="progress is-danger is-small"
|
|
|
|
value="{{memory.percent}}"
|
|
|
|
max="1">
|
|
|
|
{{memory.percent}}
|
|
|
|
</progress>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-09-21 00:48:18 +00:00
|
|
|
{{/if}}
|
|
|
|
</td>
|