Update service manager to pass MeshGateway with config req
This commit is contained in:
parent
04fbc104cd
commit
a67c92b961
|
@ -312,8 +312,6 @@ func makeConfigRequest(bd BaseDeps, addReq AddServiceRequest) *structs.ServiceCo
|
||||||
var (
|
var (
|
||||||
ns = addReq.Service
|
ns = addReq.Service
|
||||||
name = ns.Service
|
name = ns.Service
|
||||||
id = ns.ID
|
|
||||||
node = addReq.nodeName
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var upstreams []structs.ServiceID
|
var upstreams []structs.ServiceID
|
||||||
|
@ -338,10 +336,9 @@ func makeConfigRequest(bd BaseDeps, addReq AddServiceRequest) *structs.ServiceCo
|
||||||
|
|
||||||
req := &structs.ServiceConfigRequest{
|
req := &structs.ServiceConfigRequest{
|
||||||
Name: name,
|
Name: name,
|
||||||
ID: id,
|
|
||||||
NodeName: node,
|
|
||||||
Datacenter: bd.RuntimeConfig.Datacenter,
|
Datacenter: bd.RuntimeConfig.Datacenter,
|
||||||
QueryOptions: structs.QueryOptions{Token: addReq.token},
|
QueryOptions: structs.QueryOptions{Token: addReq.token},
|
||||||
|
MeshGateway: ns.Proxy.MeshGateway,
|
||||||
UpstreamIDs: upstreams,
|
UpstreamIDs: upstreams,
|
||||||
EnterpriseMeta: ns.EnterpriseMeta,
|
EnterpriseMeta: ns.EnterpriseMeta,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue