-
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
feedback1 on annotation validation #12205
Comments
Your observation is accurate. Please continue to use the v1.11 series. /remove-kind bug |
@longwuyuan: Closing this issue. In response to this:
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. |
Thank you. I am a little confused - are you saying that in 1.12 onward, absolute paths will not be supported? Or that this is a known issue in the beta that will be resolved? |
Sorry for the confusion. The flag --enable-annotation-validation gets enabled by default in this BETA. It is not enabled by default in earlier versions. |
More about the changes made here https://github.com/kubernetes/ingress-nginx/releases |
Ah, I was wondering how the validation started being applied when it had been there for a while. Do you then think the validation on this annotation could perhaps be less restrictive? I wonder if the regex used on this annotation could use some investigation:
The regex exhibits some unexpected (to me at least) results in other cases too:
https://regex101.com/r/8qa1wO/2 I would expect all of these to be valid values. |
/reopen Thank you for the feedback. The beta was released to get feedback. @rikatz @tao12345666333 cc for feedback on annotation validation chars |
@longwuyuan: Reopened this issue. In response to this:
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. |
/retitle feedback1 on annotation validation |
auth-tls-error-page
annotation no longer allows specifying absolute path
/kind feature |
/assign @strongjz |
Hello, Like the OP I am applying the controller like so:
Instead of pinning a certain version (1.11) of this file, I thought I could turn off the
But I still get a validation error after the patch:
What am I doing wrong? Shouldn't the addition of the arg be enough to mute the error? Thank you! |
check the related location like a flag in th epod or the configMap to be sure that the helm install configuration was a success. annotation-validation and server-snippet are not the same config. |
Thanks, in the end I chose to get rid of our |
https://regex101.com/r/xk9Zd1/1
Looks like will match all. |
Well interesting, that the e2e fails |
The original RegEx also checks for ports in the host part. No idea if this might break it. |
What happened:
I specify an ingress with the annotation:
Previously, this worked and was accepted. As of today, I now receive an error:
I am using the deployment resource at https://github.com/kubernetes/ingress-nginx/blob/main/deploy/static/provider/kind/deploy.yaml. Looking at the history, I see the controller was upgraded to 1.12.0-beta.0 yesterday. If I use the version of the file from prior to that commit (https://raw.githubusercontent.com/kubernetes/ingress-nginx/d70b849d253749431aebc13e789c5981ee6f4538/deploy/static/provider/kind/deploy.yaml) it works as expected, so it appears to be related to that change.
What you expected to happen:
I expect an absolute path to be acceptable. The nginx documentation even shows examples where the
error_page
is configured with an absolute path: https://nginx.org/en/docs/http/ngx_http_core_module.html#error_pageNGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):
Kubernetes version (use
kubectl version
):Environment:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release): RHEL 8.8
Kernel (e.g.
uname -a
): Linux 4.18.0-477.67.1.el8_8.x86_64Install tools:
kind v0.24.0 go1.22.6 linux/amd64
Basic cluster related info:
kubectl version
kubectl get nodes -o wide
How was the ingress-nginx-controller installed:
Current State of the controller:
kubectl describe ingressclasses
kubectl -n <ingresscontrollernamespace> get all -A -o wide
kubectl -n <ingresscontrollernamespace> describe po <ingresscontrollerpodname>
kubectl -n <ingresscontrollernamespace> describe svc <ingresscontrollerservicename>
Current state of ingress object, if applicable:
kubectl -n <appnamespace> get all,ing -o wide
kubectl -n <appnamespace> describe ing <ingressname>
Others:
kubectl describe ...
of any custom configmap(s) created and in useHow to reproduce this issue:
Anything else we need to know:
The text was updated successfully, but these errors were encountered: