{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
{{#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}}
{{#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}}