2023-04-10 15:36:59 +00:00
|
|
|
{{!
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
}}
|
|
|
|
|
2018-09-21 00:48:18 +00:00
|
|
|
<td class="is-narrow">
|
2022-01-24 15:58:28 +00:00
|
|
|
{{#unless this.task.driverStatus.healthy}}
|
2022-01-19 16:20:00 +00:00
|
|
|
<span
|
|
|
|
data-test-icon="unhealthy-driver"
|
|
|
|
class="tooltip text-center"
|
|
|
|
aria-label="{{this.task.driver}} is unhealthy"
|
|
|
|
>
|
2022-01-24 15:58:28 +00:00
|
|
|
{{x-icon "alert-triangle" class="is-warning"}}
|
|
|
|
</span>
|
|
|
|
{{/unless}}
|
2018-09-21 00:48:18 +00:00
|
|
|
</td>
|
2019-09-04 14:39:56 +00:00
|
|
|
<td data-test-name class="nowrap">
|
2022-01-19 16:20:00 +00:00
|
|
|
<LinkTo
|
|
|
|
@route="allocations.allocation.task"
|
|
|
|
@models={{array this.task.allocation this.task}}
|
|
|
|
class="is-primary"
|
|
|
|
>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{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>
|
2022-01-19 16:20:00 +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}}
|
2022-01-19 16:20:00 +00:00
|
|
|
<em>
|
|
|
|
No message
|
|
|
|
</em>
|
2018-09-21 00:48:18 +00:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
2022-01-19 16:20:00 +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>
|
2022-01-19 16:20:00 +00:00
|
|
|
<strong>
|
|
|
|
{{volume.volume}}
|
|
|
|
:
|
|
|
|
</strong>
|
2020-03-25 12:51:26 +00:00
|
|
|
{{#if volume.isCSI}}
|
2022-01-19 16:20:00 +00:00
|
|
|
<LinkTo
|
|
|
|
@route="csi.volumes.volume"
|
2022-04-21 17:57:18 +00:00
|
|
|
@model={{concat
|
|
|
|
(format-volume-name
|
|
|
|
source=volume.source
|
|
|
|
isPerAlloc=volume.volumeDeclaration.perAlloc
|
|
|
|
volumeExtension=this.task.allocation.volumeExtension)
|
|
|
|
"@"
|
|
|
|
volume.namespace.id
|
|
|
|
}}
|
2022-01-19 16:20:00 +00:00
|
|
|
>
|
2022-04-21 17:57:18 +00:00
|
|
|
{{format-volume-name
|
|
|
|
source=volume.source
|
|
|
|
isPerAlloc=volume.volumeDeclaration.perAlloc
|
|
|
|
volumeExtension=this.task.allocation.volumeExtension}}
|
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}}
|
2022-01-19 16:20:00 +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}}
|
2022-01-19 16:20:00 +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}}"
|
2022-01-19 16:20:00 +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}}
|
2022-01-19 16:20:00 +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}}
|
2022-01-19 16:20:00 +00:00
|
|
|
<div
|
|
|
|
class="inline-chart tooltip"
|
|
|
|
role="tooltip"
|
|
|
|
aria-label="{{format-bytes this.memory.used}}
|
|
|
|
/
|
|
|
|
{{format-bytes this.taskStats.reservedMemory start="MiB"}}"
|
|
|
|
>
|
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}}"
|
2022-01-19 16:20:00 +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}}
|
2022-01-19 16:20:00 +00:00
|
|
|
</td>
|