consul/website/source/docs/connect
Matt Keeler acfd87c673
Improve Connect with Prepared Queries (#5291)
Given a query like:

```
{
   "Name": "tagged-connect-query",
   "Service": {
      "Service": "foo",
      "Tags": ["tag"],
      "Connect": true
   }
}
```

And a Consul configuration like:

```
{
   "services": [
      "name": "foo",
      "port": 8080,
      "connect": { "sidecar_service": {} },
      "tags": ["tag"]
   ]
}
```

If you executed the query it would always turn up with 0 results. This was because the sidecar service was being created without any tags. You could instead make your config look like:

```
{
   "services": [
      "name": "foo",
      "port": 8080,
      "connect": { "sidecar_service": {
         "tags": ["tag"]
      } },
      "tags": ["tag"]
   ]
}
```

However that is a bit redundant for most cases. This PR ensures that the tags and service meta of the parent service get copied to the sidecar service. If there are any tags or service meta set in the sidecar service definition then this copying does not take place. After the changes, the query will now return the expected results.

A second change was made to prepared queries in this PR which is to allow filtering on ServiceMeta just like we allow for filtering on NodeMeta.
2019-02-04 09:36:51 -05:00
..
ca connect: add tls config for vault connect ca provider (#5125) 2019-01-08 17:09:22 +01:00
native Fix Type in go integration (#5132) 2019-01-03 10:39:23 -05:00
platform website: note Envoy support in Nomad guide (#4787) 2018-10-19 08:41:03 -07:00
proxies Improve Connect with Prepared Queries (#5291) 2019-02-04 09:36:51 -05:00
ca.html.md website: update docs for leaf cert TTL option 2018-07-16 13:33:42 -07:00
configuration.html.md Update configuration.html.md (#5058) 2018-12-05 16:32:11 +00:00
dev.html.md Starting Docs (#46) 2018-06-25 12:24:05 -07:00
index.html.md website: fixed ca provider references (#5185) 2019-01-07 18:47:02 -08:00
intentions.html.md Update intentions documentation to clarify ACL behavior (#4546) 2018-08-20 20:03:53 +01:00
native.html.md website: make performance impact explicit for connect-native 2018-06-29 17:35:58 -07:00
proxies.html.md website: clarify format of prepared query upstreams (#5026) 2018-11-30 16:22:52 -08:00
security.html.md tenenacy > tenancy 2018-06-25 12:26:22 -07:00