You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#224.
If a user puts spaces between their upstreams in the annotation,
the first section of a prepared query later in the list shows up
as ` prepared_query`. We were doing a direct comparison of this
value with `prepared_query`, which is incorrect. This change trims
the spaces on the first part of an upstream before checking its type.
Adds several different tests to verify the behavior with multiple
upstreams defined.
Thanks for filing this! I've looked into it, and there's definitely a bug here. We're not properly stripping spaces off of the prepared_query tag while processing, so your second prepared query is not getting recognized and properly parsed.
For your case, this manifests as only two upstreams being registered:
The first prepared query
[2020-03-05 01:03:43.721][000001][info][upstream] [source/common/upstream/cluster_manager_impl.cc:495] add/update cluster vault.default.dc1.internal.d16dc2ba-6d47-f242-bc30-77d364f5596e.consul during init
Fixes#224.
If a user puts spaces between their upstreams in the annotation,
the first section of a prepared query later in the list shows up
as ` prepared_query`. We were doing a direct comparison of this
value with `prepared_query`, which is incorrect. This change trims
the spaces on the first part of an upstream before checking its type.
Adds several different tests to verify the behavior with multiple
upstreams defined.
Envoy: envoyproxy/envoy:v1.10.0
Consul: consul:1.6.2
Consul k8s: "hashicorp/consul-k8s:0.9.5"
I am using the following annotation to define upstreams:
The prepared query is registered with consul and returns this when executed:
The "vault" upstream is available on 8201, but neither prepared query is registered.
Envoy Sidecar:
The text was updated successfully, but these errors were encountered: