koli / kong-ingress

[DEPRECATED] A Kubernetes Ingress for Kong
Other
93 stars 14 forks source link

Read Strip URI from Ingress Annotationsg #21

Closed paniagua closed 6 years ago

paniagua commented 6 years ago

Strip URI It may be desirable to specify a URI prefix to match an API, but not include it in the upstream request.

It means that if the request is '/omnicall/path' it removes the '/omnicall' piece, which is not desired.

The default value is true. This PR reads the value from the ingress annotations. E.g.

annotations:
  ingress.kubernetes.io/strip-uri: "[true|false]"

I'll add a test and make a PR to the upstream