Skip to content

Commit 9eaf897

Browse files
authored
Merge pull request #636 from robscott/query-param-updates
Cleaning up query param matching spec
2 parents fbb5adb + 6558986 commit 9eaf897

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

apis/v1alpha1/httproute_types.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,6 @@ type HTTPQueryParamMatch struct {
361361
// expressions. Please read the implementation's documentation to determine
362362
// the supported dialect.
363363
//
364-
// HTTP query parameter matching MUST be case-sensitive for both keys and
365-
// values.
366-
//
367364
// +optional
368365
// +kubebuilder:default=Exact
369366
Type *QueryParamMatchType `json:"type,omitempty"`
@@ -376,6 +373,12 @@ type HTTPQueryParamMatch struct {
376373
//
377374
// Multiple match values are ANDed together, meaning, a request must match
378375
// all the specified query parameters to select the route.
376+
//
377+
// HTTP query parameter matching MUST be case-sensitive for both keys and
378+
// values. (See https://tools.ietf.org/html/rfc7230#section-2.7.3).
379+
//
380+
// Note that the query parameter key MUST always be an exact match by string
381+
// comparison.
379382
Values map[string]string `json:"values"`
380383
}
381384

config/crd/bases/networking.x-k8s.io_httproutes.yaml

+6-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)