-
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
Resolves issue with proxy-redirect nginx configuration #2423
Conversation
Still need to test this btw. |
|
@diazjf please add e2e tests with the same checks you showed in the comments |
@aledbf in order to run E2E Tests is the following correct:
I am getting the following errors:
Also another question, should we add RBAC to https://github.com/kubernetes/minikube/pull/2788/files |
@aledbf ^ |
@diazjf please rebase and run
Yes, before the end of the day I will open a PR to fix this. |
d6d622e
to
397bee7
Compare
Resolves an issue where the proxy-redirect annotations were not generating the correct configuration possibly because of user error. This is done by only setting the proxy_redirect if both proxy-redirect-from and proxy-redirect-to have valid values. Also adds the e2e tests. Fixes kubernetes#2074
@@ -262,7 +262,7 @@ func (f *Framework) matchNginxConditions(name string, matcher func(cfg string) b | |||
glog.Infof("nginx.conf:\n%v", o) | |||
} | |||
|
|||
if matcher(o) { | |||
if matcher(strings.Join(strings.Fields(o), " ")) { |
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.
Add this there are sections with some variable spaces within the template
strings.Fields(o) = splits everything up by 1 or more spaces, then we join each item, with spaces in-between
Codecov Report
@@ Coverage Diff @@
## master #2423 +/- ##
==========================================
+ Coverage 40.74% 40.76% +0.01%
==========================================
Files 73 73
Lines 5021 5022 +1
==========================================
+ Hits 2046 2047 +1
Misses 2701 2701
Partials 274 274
Continue to review full report at Codecov.
|
/approve |
@diazjf thanks! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, diazjf 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 |
Resolves an issue where the proxy-redirect annotations were not generating the correct configuration possibly because of user error. This is resolved by only setting the proxy_redirect if both proxy-redirect-from and proxy-redirect-to have valid values.
Fixes #2074