2021-04-06 12:40:40 +00:00
|
|
|
<Route
|
|
|
|
@name={{routeName}}
|
|
|
|
as |route|>
|
|
|
|
<div class="tab-section">
|
|
|
|
{{#let
|
2021-01-25 18:13:54 +00:00
|
|
|
|
2021-04-06 12:40:40 +00:00
|
|
|
(hash
|
|
|
|
value=(or sortBy "DestinationName:asc")
|
|
|
|
change=(action (mut sortBy) value="target.selected")
|
|
|
|
)
|
2021-01-25 18:13:54 +00:00
|
|
|
|
2021-04-06 12:40:40 +00:00
|
|
|
(hash
|
|
|
|
searchproperty=(hash
|
|
|
|
value=(if (not-eq searchproperty undefined)
|
|
|
|
(split searchproperty ',')
|
|
|
|
searchProperties
|
|
|
|
)
|
|
|
|
change=(action (mut searchproperty) value="target.selectedItems")
|
|
|
|
default=searchProperties
|
2021-01-25 18:13:54 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2021-12-06 11:06:33 +00:00
|
|
|
(or route.params.partition route.model.user.token.Partition 'default')
|
|
|
|
(or route.params.nspace route.model.user.token.Namespace 'default')
|
2021-09-15 18:50:11 +00:00
|
|
|
route.params.dc
|
2021-12-06 11:06:33 +00:00
|
|
|
|
2021-09-15 18:50:11 +00:00
|
|
|
route.model.proxy
|
|
|
|
route.model.proxy.Service.Proxy.Upstreams
|
2021-01-25 18:13:54 +00:00
|
|
|
|
2021-12-06 11:06:33 +00:00
|
|
|
as |sort filters partition nspace dc proxy items|}}
|
2021-04-06 12:40:40 +00:00
|
|
|
{{#if (gt items.length 0)}}
|
|
|
|
<input type="checkbox" id="toolbar-toggle" />
|
|
|
|
<Consul::UpstreamInstance::SearchBar
|
|
|
|
@search={{search}}
|
|
|
|
@onsearch={{action (mut search) value="target.value"}}
|
|
|
|
@searchproperties={{searchProperties}}
|
2020-11-12 18:45:11 +00:00
|
|
|
|
2021-04-06 12:40:40 +00:00
|
|
|
@sort={{sort}}
|
2020-12-09 19:12:17 +00:00
|
|
|
|
2021-04-06 12:40:40 +00:00
|
|
|
@filter={{filters}}
|
2021-01-05 10:04:03 +00:00
|
|
|
/>
|
2021-04-06 12:40:40 +00:00
|
|
|
{{/if}}
|
2021-04-28 18:06:18 +00:00
|
|
|
{{#if (eq proxy.ServiceProxy.Mode 'transparent')}}
|
|
|
|
<Notice
|
|
|
|
@type="warning"
|
|
|
|
as |notice|>
|
|
|
|
<notice.Header>
|
|
|
|
<h3>{{t "routes.dc.services.instance.upstreams.tproxy-mode.header"}}</h3>
|
|
|
|
</notice.Header>
|
|
|
|
<notice.Body>
|
|
|
|
<p>
|
|
|
|
{{t "routes.dc.services.instance.upstreams.tproxy-mode.body"}}
|
|
|
|
</p>
|
|
|
|
</notice.Body>
|
|
|
|
<notice.Footer>
|
|
|
|
<p>
|
|
|
|
<Action
|
|
|
|
@href={{concat (env 'CONSUL_DOCS_URL') '/connect/transparent-proxy'}}
|
|
|
|
@external={{true}}
|
|
|
|
>
|
|
|
|
{{t "routes.dc.services.instance.upstreams.tproxy-mode.footer"}}
|
|
|
|
</Action>
|
|
|
|
</p>
|
|
|
|
</notice.Footer>
|
|
|
|
</Notice>
|
|
|
|
{{/if}}
|
2021-04-06 12:40:40 +00:00
|
|
|
<DataCollection
|
|
|
|
@type="upstream-instance"
|
|
|
|
@sort={{sort.value}}
|
|
|
|
@filters={{filters}}
|
|
|
|
@search={{search}}
|
|
|
|
@items={{items}}
|
|
|
|
as |collection|>
|
|
|
|
<collection.Collection>
|
|
|
|
<Consul::UpstreamInstance::List
|
|
|
|
@items={{collection.items}}
|
|
|
|
@dc={{dc}}
|
|
|
|
@nspace={{nspace}}
|
2021-11-17 17:46:50 +00:00
|
|
|
@partition={{partition}}
|
2021-04-06 12:40:40 +00:00
|
|
|
/>
|
|
|
|
</collection.Collection>
|
|
|
|
<collection.Empty>
|
|
|
|
<EmptyState>
|
|
|
|
<BlockSlot @name="body">
|
|
|
|
<p>
|
|
|
|
This service has no upstreams{{#if (gt items.length 0)}} matching that search{{/if}}.
|
|
|
|
</p>
|
|
|
|
</BlockSlot>
|
|
|
|
</EmptyState>
|
|
|
|
</collection.Empty>
|
|
|
|
</DataCollection>
|
|
|
|
{{/let}}
|
|
|
|
</div>
|
|
|
|
</Route>
|