-
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
Allows allows-access-logs to set 'access_log on' #12081
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: vanny96 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The 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-sigs/prow repository. |
Welcome @vanny96! |
Hi @vanny96. 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-sigs/prow repository. |
✅ Deploy Preview for kubernetes-ingress-nginx canceled.
|
b0ffa77
to
26c49b6
Compare
Ciao @vanny96! Thank you very much for your contributions! Some first notes: Could you please not commit the Do you think there would be a way to only set this option if it differs from the global default? If I understand your change correctly, you're trying to achieve that one can disable logging globally and only enable it for specific locations, right? If so, this totally makes sense to me. But I think we can achieve this without changing the type of the configuration option, which would be a breaking change. Mille grazie |
/hold Please do not proceed with any nginx.tmpl change until we can finish the crossplane migration. Thanks! |
Hey @Gacko, First of all, I'm sorry for the go.sum, Goland likes to shuffle things around and I didn't pay enough attention! I'll fix it now! My intention was exactly what you mentioned! Being able to disable access_log globally and re-enable it locally would be the idea! I tried to think of all the edge cases and couldn't come up with a way to support it without changing it (while still keeping back compatibility) End goal:
Things I tried:
Maybe I can spend some more time on this second approach, but otherwise do you have any other possible ideas to explore? |
26c49b6
to
1760772
Compare
1760772
to
b81608d
Compare
Hey @Gacko, did you have a chance to take a look at this? |
What this PR does / why we need it:
Turned the
enable-access-log
annotation frombool
tostring
in order to allow 3 possible values:true
,false
anddefault
Expected behaviour
true
-> Setsaccess_log on;
false
-> Setsaccess_log off;
default
-> Sets nothing, keeps outer scope configurationTypes of changes
Which issue/s this PR fixes
fixes #12078
How Has This Been Tested?
Not tested
Checklist: