Skip to content

Commit

Permalink
Merge pull request #875 from jpeach/fix-path-match-docs
Browse files Browse the repository at this point in the history
Fix HTTP path match documentation.
  • Loading branch information
k8s-ci-robot authored Sep 22, 2021
2 parents 1cc9d1a + 16e9bba commit 04a8eb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apis/v1alpha2/httproute_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ type HTTPRouteRule struct {
type PathMatchType string

const (
// Matches the URL path exactly and with case sensitivity.
PathMatchExact PathMatchType = "Exact"

// Matches based on a URL path prefix split by `/`. Matching is
// case sensitive and done on a path element by element basis. A
// path element refers to the list of labels in the path split by
Expand All @@ -229,9 +232,6 @@ const (
//
// For example, `/abc`, `/abc/` and `/abc/def` match the prefix
// `/abc`, but `/abcd` does not.
PathMatchExact PathMatchType = "Exact"

// Matches the URL path exactly and with case sensitivity.
PathMatchPrefix PathMatchType = "Prefix"

// Matches if the URL path matches the given regular expression with
Expand Down

0 comments on commit 04a8eb4

Please sign in to comment.