gloo icon indicating copy to clipboard operation
gloo copied to clipboard

Deleting an HTTPRoute fails to remove corresponding Envoy config

Open jameshbarton opened this issue 1 year ago • 0 comments

Gloo Edge Product

Open Source

Gloo Edge Version

v2.0.0-beta1

Kubernetes Version

v1.27.3 (kind)

Describe the bug

When I use kubectl to delete an HTTPRoute, GG fails to remove the corresponding Envoy config. So a request to that route will be processed as before, instead of erroring out.

Expected Behavior

Request should return a 404 response after route is removed.

Steps to reproduce the bug

  1. Deploy the httpbin service / upstream as described here. Complete all the steps before the Next Steps section.
  2. Confirm that this test succeeds as expected:
curl -vik http://$INGRESS_GW_ADDRESS:8080/status/200 -H "host: www.example.com:8080"
  1. Delete the HTTPRoute you created earlier:
kubectl delete httproute httpbin -n httpbin
  1. Re-run this curl command. It should fail with a 404 error but it succeeds instead.
curl -vik http://$INGRESS_GW_ADDRESS:8080/status/200 -H "host: www.example.com:8080"

Additional Environment Detail

Using kind cluster

Additional Context

No response

jameshbarton avatar Dec 04 '23 18:12 jameshbarton