-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
helm release 4.5.0 broke regex in path #9616
Comments
could you please add more details about this? I don't understand exactly what problem you're having |
@tao12345666333 no problem, I will try to be precise as possible. So we have bunch of ingresses inside of our k8s cluster kubectl get ing -A | wc -l
27 On the version helm nginx 4.4.2 if I open What could give some additional clues:
|
Hi, UPDATE: |
@cinesia Thanks! I knew that somebody also will be hit but the same issue. It is very pity that regexs like |
Because of the revert for the more complex path validation, it ended up with this hardcoded implementation: https://github.com/kubernetes/ingress-nginx/blob/main/pkg/util/ingress/ingress.go#L35 Which is missing, for whatever reason, |
Do you plan to release a hotfix? It's kind of a big breaking change, which I would not expect moving from 4.4.2 to 4.5.0 according to semantic versioning. |
Not a maintainer - we simply downgraded the install to 4.4.2 (and also pinned it 👀 ). |
Thanks for your feedback, We will verify and fix it quickly |
This is indeed a breaking change, we are seeing the same issue as @cinesia. Some documentation on the expected new format could be good to have (unless it is a bug? was the old format deprecated at some point?) |
/triage accepted |
Is this a repeat of #9464 ? |
We just released a new version, can you test it with the new version? |
The new version does not have the issue on my cluster. |
I can confirm that 4.5.2 helm is working
|
Yes, 4.5.1 doesn't actually create a release by CI job, so it doesn't exist. |
I think the path validation was fine and there is a missing annotation in the config above: |
We have that annotation set.:) everything was working fine in 4.4.2. Is pretty clear from the code that "*" and "|" are missing from the regex validation charset. Maybe you are not using those - if you do, create a similar Ingress (so you don't brick the existing one) and see if it gets picked up by the controller. 🙃 |
@fcuello-fudo I don't want to argue, because it will be contrproductive. The fact is that "regex" like |
This is working fine and doesn't work without |
@gecube sure, I'm just pointing out that the doc says that you should use |
Using |
We are do not why 4.5.1 was not released in the PR with 1.6.4, so we bumped the chart to 4.5.2. |
1.6.4 was released with helm 4.5.2 please use those now. All of the path validation was removed from the ingress and the admission controller. If you have an issue with 1.6.4 or helm 4.5.2 please open a new issue. thank you, /close |
@strongjz: 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/test-infra repository. |
Hi!
It is just more reminder to me. 4 hours ago we faced the issue with our k8s cluster - the application stopped to work. I found that the fluxcd automatically updated the chart of nginx ingress to the latest version, 4.5.0. The issue is that we have a lot of ingresses and some of them stopped working. The values for helm was the same. I will investigate what happened and probably return with more data. The revert to helm chart 4.4.2 helped. The issue was reproducible at least on two clusters (our dev and stage).
The values looked like:
Others were by default.
The ingresses are typical like:
I will try to find where the behaviour changed.
The text was updated successfully, but these errors were encountered: