From 16e9bbabb8d069bfc0e0fd0a7455afcbfd19629b Mon Sep 17 00:00:00 2001 From: James Peach Date: Wed, 22 Sep 2021 11:43:54 +1000 Subject: [PATCH] Fix HTTP path match documentation. The documentation for the prefix and exact path match types was attached to the wrong constants. Signed-off-by: James Peach --- apis/v1alpha2/httproute_types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apis/v1alpha2/httproute_types.go b/apis/v1alpha2/httproute_types.go index 67d72cf597..c788921315 100644 --- a/apis/v1alpha2/httproute_types.go +++ b/apis/v1alpha2/httproute_types.go @@ -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 @@ -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