Fix mirror-target values without path separator and port (#9889)
* Remove variables with $ before feeding into url.Parse Signed-off-by: Gerald Pape <gerald@giantswarm.io> * Do not render invalid request mirroring config Signed-off-by: Gerald Pape <gerald@giantswarm.io> * Remove additional note from docs again Signed-off-by: Gerald Pape <gerald@giantswarm.io> * Include quotes in e2e test for mirror proxy_pass --------- Signed-off-by: Gerald Pape <gerald@giantswarm.io>
This commit is contained in:
parent
4d3e64258c
commit
db49b9da6f
4 changed files with 26 additions and 7 deletions
|
|
@ -60,7 +60,7 @@ var _ = framework.DescribeAnnotation("mirror-*", func() {
|
|||
func(server string) bool {
|
||||
return strings.Contains(server, fmt.Sprintf("mirror /_mirror-%v;", ing.UID)) &&
|
||||
strings.Contains(server, "mirror_request_body on;") &&
|
||||
strings.Contains(server, "proxy_pass https://test.env.com/$request_uri;")
|
||||
strings.Contains(server, `proxy_pass "https://test.env.com/$request_uri";`)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue