Allow enable-access-log annotation to set 'access_log on' #12078
Open
Description
As a kubernetes cluster administrator, I'd like to set the default access_log
for the ingresses to off (achieving this by using disable-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 using nginx.ingress.kubernetes.io/enable-access-log: "true"
would allow to set the access_log back to on, but by looking at the nginx.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
- unset: sets nothing, keeps parent behaviour
Metadata
Assignees
Labels
Type
Projects
Status
No status