diff --git a/ui-v2/app/components/consul-kind/index.hbs b/ui-v2/app/components/consul-kind/index.hbs index 2d7bbce76e..0b1b84a6c2 100644 --- a/ui-v2/app/components/consul-kind/index.hbs +++ b/ui-v2/app/components/consul-kind/index.hbs @@ -1,11 +1,93 @@ {{#if item.Kind}} - {{#if (has-block)}} - {{yield - (component 'consul-kind' item=item) - }} - {{else}} - - {{titleize (humanize item.Kind)}} - - {{/if}} + {{#let (titleize (humanize item.Kind)) as |Name|}} + {{#if (has-block)}} + {{yield + (component 'consul-kind' item=item withInfo=withInfo) + }} + {{else}} + {{#if withInfo}} +
+
+ + {{Name}} + +
+
+ + + {{#if (eq item.Kind 'ingress-gateway')}} + Ingress gateways enable ingress traffic from services outside the Consul service mesh to services inside the Consul service mesh. + {{else if (eq item.Kind 'terminating-gateway')}} + Terminating gateways allow connect-enabled services in Consul service mesh to communicate with services outside the service mesh. + {{else}} + Mesh gateways enable routing of Connect traffic between different Consul datacenters. + {{/if}} + + +
  • + {{#if (eq item.Kind 'ingress-gateway')}} + About Ingress gateways + {{else if (eq item.Kind 'terminating-gateway')}} + About Terminating gateways + {{else}} + About Mesh gateways + {{/if}} +
  • + {{#let (from-entries + (array 'ingress-gateway' '/consul/developer-mesh/ingress-gateways') + (array 'terminating-gateway' '/consul/developer-mesh/understand-terminating-gateways') + (array 'mesh-gateway' '/consul/developer-mesh/connect-gateways') + ) as |link|}} + + {{/let}} + {{#let (from-entries + (array 'ingress-gateway' '/connect/ingress_gateway.html') + (array 'terminating-gateway' '/connect/terminating_gateway.html') + (array 'mesh-gateway' '/connect/mesh_gateway.html') + ) as |link|}} + +
  • + Other gateway types +
  • + {{#if (not-eq item.Kind 'mesh-gateway')}} + + {{/if}} + {{#if (not-eq item.Kind 'terminating-gateway')}} + + {{/if}} + {{#if (not-eq item.Kind 'ingress-gateway')}} + + {{/if}} + {{/let}} +
    +
    +
    +
    + {{else}} + + {{Name}} + + {{/if}} + {{/if}} + {{/let}} {{/if}} diff --git a/ui-v2/app/components/hashicorp-consul/index.hbs b/ui-v2/app/components/hashicorp-consul/index.hbs index 8854661586..a41d1c15d1 100644 --- a/ui-v2/app/components/hashicorp-consul/index.hbs +++ b/ui-v2/app/components/hashicorp-consul/index.hbs @@ -13,7 +13,7 @@ {{#if dc}}