2020-02-12 17:46:29 +00:00
|
|
|
{{#if (gt items.length 0)}}
|
2020-07-20 17:12:34 +00:00
|
|
|
<ListCollection @items={{items}} @linkable={{action "isLinkable"}} class="consul-service-list" as |item index|>
|
2020-06-17 09:25:54 +00:00
|
|
|
<BlockSlot @name="header">
|
2020-08-21 07:53:22 +00:00
|
|
|
<dl class={{item.MeshStatus}}>
|
2020-06-24 13:54:16 +00:00
|
|
|
<dt>
|
|
|
|
Health
|
|
|
|
</dt>
|
2020-06-17 09:25:54 +00:00
|
|
|
<dd>
|
|
|
|
<Tooltip @position="top-start">
|
2020-08-21 07:53:22 +00:00
|
|
|
{{#if (eq 'critical' item.MeshStatus)}}
|
2020-06-17 09:25:54 +00:00
|
|
|
At least one health check on one instance is failing.
|
2020-08-21 07:53:22 +00:00
|
|
|
{{else if (eq 'warning' item.MeshStatus)}}
|
2020-06-17 09:25:54 +00:00
|
|
|
At least one health check on one instance has a warning.
|
2020-08-21 07:53:22 +00:00
|
|
|
{{else if (eq 'passing' item.MeshStatus)}}
|
2020-06-17 09:25:54 +00:00
|
|
|
All health checks are passing.
|
|
|
|
{{else}}
|
|
|
|
There are no health checks.
|
|
|
|
{{/if}}
|
|
|
|
</Tooltip>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
2020-07-20 17:12:34 +00:00
|
|
|
{{#if (gt item.InstanceCount 0)}}
|
2020-10-05 17:07:35 +00:00
|
|
|
<a data-test-service-name href={{href-to "dc.services.show.index" item.Name}}>
|
|
|
|
{{item.Name}}
|
|
|
|
</a>
|
2020-07-20 17:12:34 +00:00
|
|
|
{{else}}
|
|
|
|
<p data-test-service-name>
|
|
|
|
{{item.Name}}
|
|
|
|
</p>
|
|
|
|
{{/if}}
|
2020-06-17 09:25:54 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="details">
|
2020-06-24 13:54:16 +00:00
|
|
|
{{#if (and nspace (env 'CONSUL_NSPACES_ENABLED'))}}
|
|
|
|
{{#if (not-eq item.Namespace nspace)}}
|
|
|
|
<dl class="nspace">
|
|
|
|
<dt>
|
|
|
|
<Tooltip>
|
|
|
|
Namespace
|
|
|
|
</Tooltip>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
{{item.Namespace}}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
<ConsulKind @item={{item}} />
|
|
|
|
<ConsulExternalSource @item={{item}} />
|
2020-10-09 14:47:25 +00:00
|
|
|
{{#if (and (not-eq item.InstanceCount 0) (and (not-eq item.Kind 'terminating-gateway') (not-eq item.Kind 'ingress-gateway'))) }}
|
2020-06-24 13:54:16 +00:00
|
|
|
<span>
|
|
|
|
{{format-number item.InstanceCount}} {{pluralize item.InstanceCount 'Instance' without-count=true}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2020-09-30 13:13:38 +00:00
|
|
|
{{#if (eq item.Kind 'terminating-gateway')}}
|
|
|
|
<span data-test-associated-service-count>
|
|
|
|
{{format-number item.GatewayConfig.AssociatedServiceCount}} linked services
|
|
|
|
</span>
|
|
|
|
{{else if (eq item.Kind 'ingress-gateway')}}
|
|
|
|
<span data-test-associated-service-count>
|
|
|
|
{{format-number item.GatewayConfig.AssociatedServiceCount}} upstreams
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
{{#if (or item.ConnectedWithGateway item.ConnectedWithProxy)}}
|
|
|
|
<dl class="mesh">
|
2020-06-24 13:54:16 +00:00
|
|
|
<dt>
|
|
|
|
<Tooltip>
|
|
|
|
This service uses a proxy for the Consul service mesh
|
|
|
|
</Tooltip>
|
|
|
|
</dt>
|
2020-09-30 13:13:38 +00:00
|
|
|
{{#if (and item.ConnectedWithGateway item.ConnectedWithProxy )}}
|
|
|
|
<dd data-test-mesh>
|
|
|
|
in service mesh with proxy and gateway
|
|
|
|
</dd>
|
|
|
|
{{else if item.ConnectedWithProxy}}
|
|
|
|
<dd data-test-mesh>
|
|
|
|
in service mesh with proxy
|
|
|
|
</dd>
|
|
|
|
{{else if item.ConnectedWithGateway}}
|
|
|
|
<dd data-test-mesh>
|
|
|
|
in service mesh with gateway
|
|
|
|
</dd>
|
|
|
|
{{/if}}
|
2020-06-24 13:54:16 +00:00
|
|
|
</dl>
|
|
|
|
{{/if}}
|
|
|
|
<TagList @item={{item}} />
|
2020-06-17 09:25:54 +00:00
|
|
|
</BlockSlot>
|
2020-04-08 17:09:36 +00:00
|
|
|
</ListCollection>
|
2020-02-12 17:46:29 +00:00
|
|
|
{{/if}}
|