2020-07-20 17:12:34 +00:00
|
|
|
<ListCollection @items={{items}} @linkable={{action "isLinkable"}} class="consul-upstream-list" as |item index|>
|
2020-06-17 09:25:54 +00:00
|
|
|
<BlockSlot @name="header">
|
2020-07-20 17:12:34 +00:00
|
|
|
{{#if (gt item.InstanceCount 0)}}
|
2020-06-17 09:25:54 +00:00
|
|
|
<dl class={{service/health-checks item}}>
|
|
|
|
<dt>
|
|
|
|
Health
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
<Tooltip @position="top-start">
|
|
|
|
{{#if (eq 'critical' (service/health-checks item))}}
|
|
|
|
At least one health check on one instance is failing.
|
|
|
|
{{else if (eq 'warning' (service/health-checks item))}}
|
|
|
|
At least one health check on one instance has a warning.
|
|
|
|
{{else if (eq 'passing' (service/health-checks item))}}
|
|
|
|
All health checks are passing.
|
|
|
|
{{else}}
|
|
|
|
There are no health checks.
|
|
|
|
{{/if}}
|
|
|
|
</Tooltip>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{#if (and (env 'CONSUL_NSPACES_ENABLED') (not-eq item.Namespace nspace))}}
|
|
|
|
<a data-test-service-name href={{href-to 'nspace.dc.services.show' (concat '~' item.Namespace) dc item.Name }}>
|
|
|
|
{{item.Name}}
|
|
|
|
</a>
|
|
|
|
{{else}}
|
|
|
|
<a data-test-service-name href={{href-to 'dc.services.show' item.Name}}>
|
|
|
|
{{item.Name}}
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
2020-06-18 13:23:42 +00:00
|
|
|
{{else}}
|
2020-06-17 09:25:54 +00:00
|
|
|
<p data-test-service-name>
|
|
|
|
{{item.Name}}
|
|
|
|
</p>
|
2020-06-18 13:23:42 +00:00
|
|
|
{{/if}}
|
2020-06-17 09:25:54 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="details">
|
2020-06-18 13:23:42 +00:00
|
|
|
{{#if (and (env 'CONSUL_NSPACES_ENABLED') (not-eq item.Namespace nspace))}}
|
|
|
|
<dl class="nspace">
|
|
|
|
<dt>
|
|
|
|
<Tooltip>
|
|
|
|
Namespace
|
|
|
|
</Tooltip>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
{{item.Namespace}}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
2020-06-25 13:50:39 +00:00
|
|
|
{{#if (gt item.GatewayConfig.Addresses.length 0)}}
|
|
|
|
{{#each item.GatewayConfig.Addresses as |address|}}
|
|
|
|
<dl>
|
|
|
|
<dt>
|
|
|
|
<CopyButton
|
|
|
|
@value={{address}}
|
|
|
|
@name="Address"
|
|
|
|
/>
|
|
|
|
</dt>
|
|
|
|
<dd>{{address}}</dd>
|
2020-06-18 13:23:42 +00:00
|
|
|
</dl>
|
2020-06-25 13:50:39 +00:00
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
2020-06-17 09:25:54 +00:00
|
|
|
</BlockSlot>
|
|
|
|
</ListCollection>
|