According to documentation, at the moment annotation nginx.ingress.kubernetes.io/whitelist-source-range totally overrides corresponding option from ConfigMap.
In my use case I want to configure trusted networks globally for all Ingress objects (by whitelist-source-range option at ConfigMap), and add another trusted IPs/networks for particular Ingress objects.
If I use annotation nginx.ingress.kubernetes.io/whitelist-source-range on particular Ingress object, I loose access to its from trusted networks configured globally.
It would be nice to have a toggle to enable merging nnginx.ingress.kubernetes.io/whitelist-source-range annotation with whitelist-source-range option from ConfigMap.
Like this:
nginx.ingress.kubernetes.io/whitelist-source-range-mode: <override|merge>
With default value of override.
I couldn't find another issues about this feature.
According to documentation, at the moment annotation
nginx.ingress.kubernetes.io/whitelist-source-rangetotally overrides corresponding option from ConfigMap.In my use case I want to configure trusted networks globally for all Ingress objects (by
whitelist-source-rangeoption at ConfigMap), and add another trusted IPs/networks for particular Ingress objects.If I use annotation
nginx.ingress.kubernetes.io/whitelist-source-rangeon particular Ingress object, I loose access to its from trusted networks configured globally.It would be nice to have a toggle to enable merging
nnginx.ingress.kubernetes.io/whitelist-source-rangeannotation withwhitelist-source-rangeoption from ConfigMap.Like this:
With default value of
override.I couldn't find another issues about this feature.