-
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
Use ingress v1 API #7145
Comments
IMHO I think we should also be compatible with the v1beta1 version but do some jobs to guide users to migrate from v1beta1. |
sorry for the description, it is misleading. The problem here is that the code uses the v1beta1 api to talk to the apiserver, and it relies on the conversion done by the apiserver to implement the v1 features. nginx-ingress has to use directly the v1 api in the code, i.e. sed s/v1beta1/v1/
otherwise it will not work against kubernetes 1.22+ versions |
@aojea That code be done by adding another command-line option like :"--ingress-version". |
I don't think that is correct you must move to |
I mean, as a widely used projecy, ingress-nginx itself should support both these ingress versions, but letting users to decide which version that they want to use in their project. I'm not talking about the differences between these two versions. |
That is not how Kubernetes API works :) beta is not a different version, it is an intermediate version to go to v1 and eventually, is deprecated and removed, that is what happened here. https://kubernetes.io/docs/reference/using-api/deprecation-policy/ |
Yes I agree with you. This is the lifecycle of the Kubernetes API. Although this is a widely used project, I think it should have its own compatibility matrix. New versions are compatible with newer versions of Kubernetes, gradually dropping support for older versions. |
We can discuss in the next community meeting. |
Good point. |
Agreed with Antonio Let's discuss this on our next meeting. I'll try to attend as well. I know, as a user that it might be hard to see things getting deprecated but also this will make the code maintenance and evolution much better, as now we have a GA API that is around there for a while. |
/assign |
+1 for this issue. Can confirm it does not work w/ a 1.22 cluster. From my controller logs:
|
The cluster I am using is older and it would be great if there was a solution to continue forward while still supporting the older ingressclass version for a period of time at least. |
Kubernetes has deprecated and removed the ingress v1beta1 API in kubernetes 1.22, all ingress implementation must support v1
k8s.io/api/networking/v1
EDIT
ingress-nginx must work against an apiserver that ONLY serves ingress/v1
/kind bug
The text was updated successfully, but these errors were encountered: