Skip to content

Commit

Permalink
remove wrong escape char
Browse files Browse the repository at this point in the history
  • Loading branch information
santinoncs committed Oct 28, 2021
1 parent 043eff1 commit 6f33812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/envoyfilterobject.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (r *RateLimitReconciler) prepareUpdateEnvoyFilterObjects(rateLimitInstance

domain := baseName

payload = []byte(fmt.Sprintf(`{"typed_config":{"@type":"type.googleapis.com\/envoy.extensions.filters.http.ratelimit.v3.RateLimit","domain":"%s","rate_limit_service":{"grpc_service":{"envoy_grpc":{"cluster_name":"%s"},"timeout":"1.25s"}}},"name":"envoy.rate_limit"}`, domain, nameCluster))
payload = []byte(fmt.Sprintf(`{"typed_config":{"@type":"type.googleapis.com/envoy.extensions.filters.http.ratelimit.v3.RateLimit","domain":"%s","rate_limit_service":{"grpc_service":{"envoy_grpc":{"cluster_name":"%s"},"timeout":"1.25s"}}},"name":"envoy.rate_limit"}`, domain, nameCluster))

rawConfigHTTPFilter := json.RawMessage(payload)

Expand Down

0 comments on commit 6f33812

Please sign in to comment.