ui: Support ingress gateways upstreams with multiple addresses (#8185)

* Upgrade consul-api-double to version 3.1.2

* Display multiple addresses for ingress gateway upstreams
This commit is contained in:
Kenia 2020-06-25 09:50:39 -04:00 committed by GitHub
parent 7041f69892
commit 5dd923ee8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 17 deletions

View File

@ -35,11 +35,13 @@
{{/if}}
{{#if (gt item.LocalBindPort 0)}}
{{#let (concat (or item.LocalBindAddress '127.0.0.1') ':' item.LocalBindPort) as |combinedAddress|}}
<dl class="port">
<dl>
<dt>
<CopyButton
@value={{combinedAddress}}
@name="Address"
/>
</dt>
<dd>{{combinedAddress}}</dd>
</dl>
{{/let}}

View File

@ -47,14 +47,18 @@
</dd>
</dl>
{{/if}}
{{#if (not-eq item.GatewayConfig.ListenerPort 0)}}
<dl class="port">
{{#if (gt item.GatewayConfig.Addresses.length 0)}}
{{#each item.GatewayConfig.Addresses as |address|}}
<dl>
<dt>
<CopyButton
@value={{item.GatewayConfig.ListenerPort}}
@name="Port"
@value={{address}}
@name="Address"
/>
<dd>:{{item.GatewayConfig.ListenerPort}}</dd>
</dt>
<dd>{{address}}</dd>
</dl>
{{/each}}
{{/if}}
</BlockSlot>
</ListCollection>

View File

@ -108,6 +108,6 @@
}
// In this case we do not need a background on the icon
%composite-row .combined-address .copy-button button:hover,
%composite-row-detail .port .copy-button button:hover {
%composite-row-detail dt .copy-button button:hover {
background-color: transparent !important;
}

View File

@ -1211,9 +1211,9 @@
js-yaml "^3.13.1"
"@hashicorp/consul-api-double@^3.0.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@hashicorp/consul-api-double/-/consul-api-double-3.1.0.tgz#6f0cfc32d99b6f0c876d473ff8fdc489b7403904"
integrity sha512-TsRvkBJTzMaXlSyaFT4HU+Phhk+7K2kWPmnuM41cqkHsCLfoTllQ37avQyLYGM/57yfd0ajbI4M6IKoYJnQUWg==
version "3.1.2"
resolved "https://registry.yarnpkg.com/@hashicorp/consul-api-double/-/consul-api-double-3.1.2.tgz#3c3b929ab0f8aff5f503728337caf1c1a41171fb"
integrity sha512-igs6f9fiA+z2Us1oLZ49/sEU0WsL+s7a1pnwFtED2xdI8tn5hz9G0doYfOxmi04IifNxv80NVifl3rZl2rn2tw==
"@hashicorp/ember-cli-api-double@^3.1.0":
version "3.1.0"