2020-05-13 15:28:11 +00:00
<div id="upstreams" class="tab-section">
<div role="tabpanel">
2020-05-29 15:07:36 +00:00
{{ # if ( gt gatewayServices .length 0 ) }}
2020-05-13 15:28:11 +00:00
<section>
<p>
2020-05-19 16:18:04 +00:00
Upstreams are services that may receive traffic from this gateway. Learn more about configuring gateways in our <a href=" {{ env 'CONSUL_DOCS_URL' }} /connect/ingress_gateway.html" target="_blank" rel="noopener noreferrer">documentation</a>.
2020-05-13 15:28:11 +00:00
</p>
2020-05-13 17:11:20 +00:00
{{ # let item .Service .Namespace as | nspace | }}
2020-05-29 15:07:36 +00:00
<ListCollection @items= {{ gatewayServices }} class="consul-upstream-list" as |item index|>
2020-05-21 17:46:15 +00:00
{{ # if ( service / exists item ) }}
2020-06-03 15:29:53 +00:00
{{ # let item .Namespace as | gatewayNspace | }}
2020-06-12 13:35:52 +00:00
<li>
<span class= {{ service / health-checks item }} >
<Tooltip>
{{ # 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>
</span>
2020-06-03 15:29:53 +00:00
{{ # if ( and ( env 'CONSUL_NSPACES_ENABLED' ) ( not-eq gatewayNspace nspace ) ) }}
2020-06-12 13:35:52 +00:00
<a data-test-service-name href= {{ href-to 'nspace.dc.services.show' ( concat '~' gatewayNspace ) dc item .Name }} >
2020-06-03 15:29:53 +00:00
{{ item .Name }}
</a>
{{ else }}
<a data-test-service-name href= {{ href-to 'dc.services.show' item .Name }} >
{{ item .Name }}
</a>
{{ / if }}
2020-06-12 13:35:52 +00:00
</li>
2020-06-03 15:29:53 +00:00
{{ / let }}
2020-05-21 17:46:15 +00:00
{{ else }}
<p data-test-service-name>
{{ item .Name }}
</p>
{{ / if }}
2020-05-13 15:28:11 +00:00
<ul>
2020-06-12 13:35:52 +00:00
{{ # if ( and ( env 'CONSUL_NSPACES_ENABLED' ) ( not-eq item .Namespace nspace ) ) }}
<li class="nspace">
<span>
2020-05-20 16:43:25 +00:00
<Tooltip>
Namespace
2020-06-12 13:35:52 +00:00
</Tooltip>
</span>
<span>
{{ item .Namespace }}
</span>
</li>
2020-05-13 17:11:20 +00:00
{{ / if }}
2020-05-13 15:28:11 +00:00
{{ # if ( not-eq item .GatewayConfig .ListenerPort 0 ) }}
<li class="port">
2020-06-12 13:35:52 +00:00
<span>
<Tooltip>
Port
</Tooltip>
</span>
<span>
<span>: {{ item .GatewayConfig .ListenerPort }} </span>
<CopyButton
@value= {{ item .GatewayConfig .ListenerPort }}
@name="Port"
/>
</span>
2020-05-13 15:28:11 +00:00
</li>
{{ / if }}
</ul>
</ListCollection>
2020-05-13 17:11:20 +00:00
{{ / let }}
2020-05-13 15:28:11 +00:00
</section>
{{ else }}
<p>
There are no upstreams.
</p>
{{ / if }}
</div>
</div>