-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor mirror feature #5015
Refactor mirror feature #5015
Conversation
7fcd99b
to
f83d7e0
Compare
Codecov Report
@@ Coverage Diff @@
## master #5015 +/- ##
=========================================
Coverage ? 58.55%
=========================================
Files ? 88
Lines ? 6840
Branches ? 0
=========================================
Hits ? 4005
Misses ? 2398
Partials ? 437
Continue to review full report at Codecov.
|
/retest |
3 similar comments
/retest |
/retest |
/retest |
proxy_pass %v; | ||
} | ||
|
||
`, loc.Mirror.URI, loc.Mirror.BackendURL)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you not considering mirror_request_body
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mirror configuration is inside the location block
@@ -832,6 +832,7 @@ stream { | |||
{{ template "CUSTOM_ERRORS" (buildCustomErrorDeps $errorLocation.UpstreamName $errorLocation.Codes $all.EnableMetrics) }} | |||
{{ end }} | |||
|
|||
{{ buildMirrorLocations $server.Locations }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where're the hardcoded mirror directives here? I was expecting to see them being deleted from this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mirror configuration is inside the location block
b4e02af
to
e519ab4
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, ElvinEfendi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
|[nginx.ingress.kubernetes.io/mirror-request-body](#mirror)|string| | ||
|[nginx.ingress.kubernetes.io/mirror-target](#mirror)|string| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|[nginx.ingress.kubernetes.io/mirror-target](#mirror)|string| | |
|[nginx.ingress.kubernetes.io/mirror-target](#mirror)|URI| |
/retest |
What this PR does / why we need it:
Types of changes
Which issue/s this PR fixes
How Has This Been Tested?
Checklist: