mirror of
https://github.com/status-im/consul.git
synced 2025-01-21 02:59:48 +00:00
ed6a2c150f
* Add limited access banner to Topology tab based on ACLs * Update to folder structure
39 lines
1.3 KiB
Handlebars
39 lines
1.3 KiB
Handlebars
<div id="tags" class="tab-section">
|
|
<div role="tabpanel">
|
|
{{#if topology.FilteredByACLs}}
|
|
<TopologyMetrics::Notice::LimitedAccess />
|
|
{{/if}}
|
|
{{#if topology}}
|
|
<TopologyMetrics
|
|
@service={{items.firstObject}}
|
|
@protocol={{topology.Protocol}}
|
|
@upstreams={{topology.Upstreams}}
|
|
@downstreams={{filter-by 'Datacenter' topology.Datacenter topology.Downstreams}}
|
|
@dc={{topology.Datacenter}}
|
|
@metricsHref={{render-template urls.services (hash
|
|
Datacenter=dc
|
|
Service=items.firstObject
|
|
)}}
|
|
/>
|
|
{{else}}
|
|
<EmptyState>
|
|
<BlockSlot @name="header">
|
|
<h2>
|
|
No dependencies
|
|
</h2>
|
|
</BlockSlot>
|
|
<BlockSlot @name="body">
|
|
<p>
|
|
This service has neither downstreams nor upstreams, which means that no services are configured to connect with it. Add upstreams and intentions to ensure this service is connected with the rest of your service mesh.
|
|
</p>
|
|
</BlockSlot>
|
|
<BlockSlot @name="actions">
|
|
<li class="docs-link">
|
|
<a href="{{env 'CONSUL_DOCS_URL'}}/connect/registration/service-registration#upstream-configuration-reference" rel="noopener noreferrer" target="_blank">Documentation on upstreams</a>
|
|
</li>
|
|
</BlockSlot>
|
|
</EmptyState>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|