open-consul/website/source/docs
Matt Keeler 210c3a56b0
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
..
agent Fix some docs formatting around DNS SOA RR configuration (#5297) 2019-01-30 16:47:32 -06:00
commands incorrect examples for 'consul acl policy' commands (#5303) 2019-02-01 09:16:36 -06:00
connect Improve Connect with Prepared Queries (#5291) 2019-02-04 09:36:51 -05:00
enterprise Doc changes for 1.4 Final (#4870) 2018-11-13 13:43:53 +00:00
guides Merge pull request #5292 from hashicorp/docs/acl-quotes 2019-01-29 15:11:00 -08:00
install website: reference last command's last field instead of background PID (#5264) 2019-01-25 17:30:38 +01:00
internals Documentation and changes for verify_server_hostname (#5069) 2018-12-06 13:51:49 -08:00
platform/k8s Fix missed letter in the documentation (#5281) 2019-01-28 16:25:56 -06:00
compatibility.html.md fix a couple html errors (#4456) 2018-07-26 16:30:24 -07:00
faq.html.md Remove all mention of Atlas, even in deprecated changelogs 2018-08-03 10:51:18 -07:00
index.html.md website: rename *.markdown to *.md 2017-05-17 20:25:45 +02:00
upgrade-specific.html.md Update upgrade-specific.html.md (#4956) 2018-11-14 21:39:59 +00:00
upgrading.html.md Be more explicit about rolling upgrade process 2018-10-11 11:44:20 +01:00