Skip to content

Commit

Permalink
feat: allow . in proxy path escape pattern
Browse files Browse the repository at this point in the history
Add the `.` character to the proxy path escape pattern so that
we can use e.g. domain names as cluster names without
breaking the query parameters escaping.

See oam-dev#150
  • Loading branch information
Vincent Tencé committed Aug 20, 2024
1 parent 48259e0 commit b592fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/cluster/v1alpha1/clustergateway_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ var (
config.MetaApiGroupName,
config.MetaApiVersionName,
"clustergateways",
"[a-z0-9]([-a-z0-9]*[a-z0-9])?",
"[a-z0-9]([-.a-z0-9]*[a-z0-9])?",
"proxy"}, "/"))
clusterGatewayProxyQueryKeysToEscape = []string{"dryRun"}
clusterGatewayProxyEscaperPrefix = "__"
Expand Down

0 comments on commit b592fc8

Please sign in to comment.