-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
fix undefined variable $auth_cookie error due to when location is denied #5664
Conversation
Hi @jeffrey-hui. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
/assign @ElvinEfendi |
Codecov Report
@@ Coverage Diff @@
## master #5664 +/- ##
==========================================
+ Coverage 58.48% 58.72% +0.24%
==========================================
Files 88 88
Lines 6975 6946 -29
==========================================
Hits 4079 4079
+ Misses 2446 2417 -29
Partials 450 450
Continue to review full report at Codecov.
|
/retest |
/test pull-ingress-nginx-e2e-1-16 |
/retest |
/test pull-ingress-nginx-e2e-1-16 |
(add) isLocationAllowed check before setting the cookie
/retest |
1 similar comment
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ElvinEfendi, jeffrey-hui 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 |
Added
isLocationAllowed
check before using the$auth_cookie
variable innginx.tmpl
.What this PR does / why we need it:
As described in #5130, a new reference to $auth_cookie variable does not get declared when location is denied. As a result, an
Undefined Nginx variable "$auth_cookie"
occurs preventing the config to be loaded properly.Types of changes
Which issue/s this PR fixes
fixes #5130
How Has This Been Tested?
Added an e2e test that starts a controller, installs an ingress with incorrect annotation, and then deploys another ingress and asserts that the new ingress is reflected in the Nginx configuration.
No new unit tests are needed.
Checklist: