2020-01-28 14:25:52 +00:00
|
|
|
{{title item.ID}}
|
2020-02-19 19:26:38 +00:00
|
|
|
<AppView @class="instance show">
|
|
|
|
<BlockSlot @name="notification" as |status type|>
|
2019-03-22 17:24:40 +00:00
|
|
|
{{partial 'dc/services/notifications'}}
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="breadcrumbs">
|
2019-02-21 13:10:53 +00:00
|
|
|
<ol>
|
|
|
|
<li><a data-test-back href={{href-to 'dc.services'}}>All Services</a></li>
|
|
|
|
<li><a data-test-back href={{href-to 'dc.services.show'}}>Service ({{item.Service}})</a></li>
|
|
|
|
</ol>
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="header">
|
2020-04-22 14:40:59 +00:00
|
|
|
<div class="title-bar">
|
|
|
|
<h1>
|
|
|
|
{{ item.ID }}
|
|
|
|
</h1>
|
|
|
|
<ConsulExternalSource @item={{item}} />
|
|
|
|
</div>
|
2019-02-21 13:10:53 +00:00
|
|
|
<dl>
|
|
|
|
<dt>Service Name</dt>
|
|
|
|
<dd><a href="{{href-to 'dc.services.show' item.Service}}">{{item.Service}}</a></dd>
|
|
|
|
</dl>
|
|
|
|
<dl>
|
|
|
|
<dt>Node Name</dt>
|
|
|
|
<dd><a href="{{href-to 'dc.nodes.show' item.Node.Node}}">{{item.Node.Node}}</a></dd>
|
|
|
|
</dl>
|
2019-03-22 17:24:40 +00:00
|
|
|
{{#if proxy.ServiceName}}
|
2019-02-21 13:10:53 +00:00
|
|
|
<dl>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
|
|
|
{{#if (eq item.Kind 'connect-proxy')}}
|
2019-03-07 10:51:39 +00:00
|
|
|
{{#if item.Proxy.DestinationServiceID}}
|
2019-02-21 13:10:53 +00:00
|
|
|
<dl>
|
2019-03-07 10:51:39 +00:00
|
|
|
<dt data-test-proxy-destination="instance">Dest. Service Instance</dt>
|
2019-06-20 08:37:17 +00:00
|
|
|
<dd><a href="{{href-to 'dc.services.instance' item.Proxy.DestinationServiceName item.Node.Node item.Proxy.DestinationServiceID}}">{{item.Proxy.DestinationServiceID}}</a></dd>
|
2019-02-21 13:10:53 +00:00
|
|
|
</dl>
|
|
|
|
<dl>
|
|
|
|
<dt>Local Service Address</dt>
|
|
|
|
<dd>{{item.Proxy.LocalServiceAddress}}:{{item.Proxy.LocalServicePort}}</dd>
|
|
|
|
</dl>
|
2019-03-07 10:51:39 +00:00
|
|
|
{{else}}
|
|
|
|
<dl>
|
|
|
|
<dt data-test-proxy-destination="service">Dest. Service</dt>
|
|
|
|
<dd><a href="{{href-to 'dc.services.show' item.Proxy.DestinationServiceName}}">{{item.Proxy.DestinationServiceName}}</a></dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
2019-02-21 13:10:53 +00:00
|
|
|
{{/if}}
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="content">
|
2020-04-08 09:56:36 +00:00
|
|
|
<TabNav @items={{
|
|
|
|
compact
|
|
|
|
(array
|
2020-04-22 14:40:59 +00:00
|
|
|
(hash label="Health Checks" href=(href-to "dc.services.instance.healthchecks") selected=(is-href "dc.services.instance.healthchecks"))
|
2019-07-05 08:07:25 +00:00
|
|
|
(if
|
|
|
|
(eq item.Kind 'connect-proxy')
|
2020-04-08 09:56:36 +00:00
|
|
|
(hash label="Upstreams" href=(href-to "dc.services.instance.upstreams") selected=(is-href "dc.services.instance.upstreams")) ""
|
2019-07-05 08:07:25 +00:00
|
|
|
)
|
2019-11-25 18:45:10 +00:00
|
|
|
(if
|
|
|
|
(and (eq item.Kind 'connect-proxy') (gt item.Proxy.Expose.Paths.length 0))
|
2020-04-08 09:56:36 +00:00
|
|
|
(hash label="Exposed Paths" href=(href-to "dc.services.instance.exposedpaths") selected=(is-href "dc.services.instance.exposedpaths")) ""
|
2019-11-25 18:45:10 +00:00
|
|
|
)
|
2019-07-05 08:07:25 +00:00
|
|
|
(if
|
|
|
|
(eq item.Kind 'mesh-gateway')
|
2020-04-08 09:56:36 +00:00
|
|
|
(hash label="Addresses" href=(href-to "dc.services.instance.addresses") selected=(is-href "dc.services.instance.addresses")) ""
|
2019-07-05 08:07:25 +00:00
|
|
|
)
|
2020-04-08 09:56:36 +00:00
|
|
|
(hash label="Tags" href=(href-to "dc.services.instance.tags") selected=(is-href "dc.services.instance.tags"))
|
|
|
|
(hash label="Meta Data" href=(href-to "dc.services.instance.metadata") selected=(is-href "dc.services.instance.metadata"))
|
|
|
|
)
|
|
|
|
}}/>
|
|
|
|
{{outlet}}
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
</AppView>
|