gloo
gloo copied to clipboard
Advanced Http Health Check JSON values are quoted
Gloo Edge Version
1.10.x (latest stable)
Kubernetes Version
1.21.x
Describe the bug
When using advanced http healthchecks, JSON parsed body keys have quotations that must be checked in the regex.
Steps to reproduce the bug
- Deploy a cluster with httpbin
- Add a healthcheck to the following:
healthChecks:
- healthyThreshold: 1
interval: 1s
timeout: 10s
unhealthyThreshold: 1
httpHealthCheck:
path: /get
responseAssertions:
noMatchHealth: degraded
responseMatchers:
- matchHealth: unhealthy
responseMatch:
body: {}
jsonKey:
path:
- key: origin
regex: ^10\.8\.0\.20$
- The upstream will be marked degraded (per the noMatchHealth setting)
- Now change the regex to ^"10.8.0.20"$ and you'll notice the upstream is marked as unhealthy again as expected
Expected Behavior
Quotes shouldn't need to be checked for, or if they are, circumstances where they are should be documented.
Additional Context
No response