diff --git a/agent/structs/config_entry_gateways.go b/agent/structs/config_entry_gateways.go index 996dac18d2..8d9ba2da7b 100644 --- a/agent/structs/config_entry_gateways.go +++ b/agent/structs/config_entry_gateways.go @@ -50,6 +50,9 @@ type IngressService struct { // This can either be a specific service, or the wildcard specifier, // "*". If the wildcard specifier is provided, the listener must be of "http" // protocol and means that the listener will forward traffic to all services. + // + // A name can be specified on multiple listeners, and will be exposed on both + // of the listeners Name string // Hosts is a list of hostnames which should be associated to this service on @@ -57,6 +60,10 @@ type IngressService struct { // to route traffic to the service by matching the Host header of the HTTP // request. // + // If a host is provided for a service that also has a wildcard specifier + // defined, the host will override the wildcard-specifier-provided + // ".*" domain for that listener. + // // This cannot be specified when using the wildcard specifier, "*", or when // using a "tcp" listener. Hosts []string diff --git a/api/config_entry_gateways.go b/api/config_entry_gateways.go index add483db09..7125b7342e 100644 --- a/api/config_entry_gateways.go +++ b/api/config_entry_gateways.go @@ -52,9 +52,12 @@ type IngressListener struct { type IngressService struct { // Name declares the service to which traffic should be forwarded. // - // This can either be a specific service instance, or the wildcard specifier, + // This can either be a specific service, or the wildcard specifier, // "*". If the wildcard specifier is provided, the listener must be of "http" // protocol and means that the listener will forward traffic to all services. + // + // A name can be specified on multiple listeners, and will be exposed on both + // of the listeners Name string // Hosts is a list of hostnames which should be associated to this service on @@ -62,6 +65,10 @@ type IngressService struct { // to route traffic to the service by matching the Host header of the HTTP // request. // + // If a host is provided for a service that also has a wildcard specifier + // defined, the host will override the wildcard-specifier-provided + // ".*" domain for that listener. + // // This cannot be specified when using the wildcard specifier, "*", or when // using a "tcp" listener. Hosts []string