{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: BUSL-1.1 }}
{{#if (gt this.downstreams.length 0)}}
{{#if (not this.emptyColumn)}}

{{@dc.Name}}

Only showing downstreams within the current datacenter for {{@service.Service.Service}}.
{{/if}} {{#each this.downstreams as |item|}} {{#if (and @hasMetricsProvider this.mainNotIngressService (not-eq item.Kind 'ingress-gateway'))}} {{!-- One of the only places in the app where it's acceptable to default to 'default' namespace --}} {{/if}} {{/each}}
{{/if}}
{{@service.Service.Service}}
{{#if (not-eq @service.Service.Meta.external-source 'consul-api-gateway')}} {{#if @hasMetricsProvider}} {{#if this.mainNotIngressService}} {{/if}} {{/if}} {{/if}}
{{#if (gt this.upstreams.length 0)}}
{{#each-in (group-by "PeerOrDatacenter" this.upstreams) as |dc upstreams|}}
{{#if dc}}

{{dc}}

{{/if}} {{#each upstreams as |item|}} {{#if (and @hasMetricsProvider this.mainNotIngressService (not-eq item.Kind 'ingress-gateway'))}} {{!-- One of the only places in the app where it's acceptable to default to 'default' namespace --}} {{/if}} {{/each}}
{{/each-in}}
{{/if}}