Allow enable-access-log annotation to set 'access_log on' #12078
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
As a kubernetes cluster administrator, I'd like to set the default
access_log
for the ingresses to off (achieving this by usingdisable-access-log
on the ConfigMap).This works great, but as of right now there is no way to turn on
access_log
on demand for specific environments. I would have assumed that usingnginx.ingress.kubernetes.io/enable-access-log: "true"
would allow to set the access_log back to on, but by looking at thenginx.tmpl
it looks like this annotation only takes effect when the annotation is set to false.Would it be possible to change
enable-access-log
such as:true
: setsaccess_log on
false
: setsaccess_log off
The text was updated successfully, but these errors were encountered: