Skip to content

Commit

Permalink
Ingress: Implement Exact and ImplementationSpecific path matches, Pre…
Browse files Browse the repository at this point in the history
…fix match updated to match spec (#3471)

Since we already had support for regex path matching without checking
the type of the path match, we now have the following rules to ensure backwards compatibility:

- If you specify a prefix path match type, you get a prefix match
  - prefix matches only match path segments, not a string prefix
  - trailing slashes ignored from prefix match string
- If you specify an exact path match type, you get an exact match
- If you specify an implementation specific path match type you get path matching behavior that Contour already supports
  - If it looks like a regex we give a regex match
  - otherwise a string prefix match like Contour already does
  - ImplementationSpecific match is the default if not set when an Ingress
  resource is created so this should give people the default they are
  already using

Fixes #2135

Signed-off-by: Sunjay Bhatia <[email protected]>
  • Loading branch information
sunjayBhatia authored Mar 26, 2021
1 parent bf93f06 commit 99b3799
Show file tree
Hide file tree
Showing 7 changed files with 488 additions and 64 deletions.
Loading

0 comments on commit 99b3799

Please sign in to comment.