diff --git a/.changelog/15324.txt b/.changelog/15324.txt new file mode 100644 index 000000000..2fb6363db --- /dev/null +++ b/.changelog/15324.txt @@ -0,0 +1,3 @@ +```release-note:improvement +ui: add consul connect service upstream and on-update info to the service sidebar +``` diff --git a/ui/app/components/allocation-service-sidebar.hbs b/ui/app/components/allocation-service-sidebar.hbs index a60488d21..5e6b698c6 100644 --- a/ui/app/components/allocation-service-sidebar.hbs +++ b/ui/app/components/allocation-service-sidebar.hbs @@ -41,6 +41,14 @@
+ {{#if @service.connect}} + + + Connect + + True + + {{/if}} Allocation @@ -140,6 +148,30 @@ {{/if}} + {{#if (eq @service.provider "consul")}} + + + {{#if @service.onUpdate}} + + + + + {{/if}} + {{#if @service.connect.sidecarService.proxy.upstreams}} + + + + + {{/if}} + +
On Update{{@service.onUpdate}}
Upstreams + {{#each + @service.connect.sidecarService.proxy.upstreams as |upstream| + }} + {{upstream.destinationName}}:{{upstream.localBindPort}} + {{/each}} +
+ {{/if}} {{#if (and (eq @service.provider "consul") this.consulRedirectLink)}}

diff --git a/ui/app/templates/allocations/allocation/index.hbs b/ui/app/templates/allocations/allocation/index.hbs index 65650c523..64b70e114 100644 --- a/ui/app/templates/allocations/allocation/index.hbs +++ b/ui/app/templates/allocations/allocation/index.hbs @@ -301,6 +301,9 @@ {{else}} + {{#if row.model.connect}} + + {{/if}} {{/if}} diff --git a/ui/app/templates/components/job-service-row.hbs b/ui/app/templates/components/job-service-row.hbs index 0c20d2312..2de7000e4 100644 --- a/ui/app/templates/components/job-service-row.hbs +++ b/ui/app/templates/components/job-service-row.hbs @@ -25,6 +25,9 @@ {{else}} {{@service.name}} {{/if}} + {{#if @service.connect}} + + {{/if}} {{/if}}