Annotation Validation is enabled even when --enable-annotation-validation=false #12668
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened:
In helm chart 4.12.0 release changes were made to the command line arguments passed to the ingress controller executable. One of these changes is related to the annotation validation command line argument "--enable-annotation-validation". Prior to release 4.12.0 when ".controller.enableAnnotationValidations" chart value was set to "false", the "--enable-annotation-validation" command line argument was not passed to the ingress controller executable. On release 4.12.0 when ".controller.enableAnnotationValidations" chart value is set to "false", "--enable-annotation-validation=false" command line argument is passed to the ingress controller executable. Unfortunately, this does not seem to disable the annotation validation feature as shown below:
What you expected to happen:
The annotation validation feature should be disabled when ".controller.enableAnnotationValidations" chart value is set to "false".
NGINX Ingress controller version (exec into the pod and run
/nginx-ingress-controller --version
):v1.12.0
Kubernetes version (use
kubectl version
):v1.30.5
How to reproduce this issue:
helm install ingress-nginx ingress-nginx/ingress-nginx --version 4.12.0 --set controller.enableAnnotationValidations=false --set controller.allowSnippetAnnotations=true
The text was updated successfully, but these errors were encountered: