-
Notifications
You must be signed in to change notification settings - Fork 22
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
Update to latest API group for Ingress to support K8s 1.22+ #49
Comments
/add label: help wanted,good first issue |
I can take care of this @alexellis |
I'll look out for a PR @miguelhrocha - but If we don't see one within a week, or when users start having issues, we may need to jump in. Let me know what kind of timeline you have in mind? |
@LucasRoesler it seems we've had no motion on this and missed the release date, so could you put this onto your list, or find someone else to take up the task? I liked the way you solved the problem for arkade by checking the capabilities of the API server instead of looking purely at the K8s API version. |
@alexellis can you clarify the scope you are expecting on this? I just looked at it and it seems like you are talking about adding an ingress-operator/pkg/controller/controller.go Lines 109 to 110 in 6dcc233
or for example here ingress-operator/pkg/controller/controller.go Line 268 in 6dcc233
ingress is returned. The typed client is going to return two different and incompatible types.
Further, i noticed that the project is using the There might be a way to try and deal with this via interfaces ... but I am not really sure it is possible or potentially even a good idea. It will be complex code. Alternatively you could try deal with the untyped API instead, but again, it is going to be messy. There is also a |
The dependencies can be updated to 1.19 But if we don't have the if statement, then we will prevent people using Kubernetes 1.18 and lower from using this component. A bit of context from the ingress-nginx project: |
@alexellis i am not willing to personally take on support for this, i totally understand that it means dropping support for k8s < 1.19, but this project is often used with nginx-ingress has already done this, so my initial feeling is that unless you see significant new features coming to ingress-operator, it is easier to feeze support for k8s < 1.19 with ingress-operator <= 0.6.7. At install, we can toggle the version in the helm chart based on the cluster capabilities |
Minimum supported versions: GKE = 1.17 What to do? |
Expected Behaviour
K8s < 1.22 and > 1.22 should work without changes.
Current Behaviour
Only < 1.22 is supported due to the API group being used going away.
List All Possible Solutions and Workarounds
Have an if statement based upon the kube API server version returned.
Steps to Reproduce (for bugs)
Context
Must fix to continue being used on latest K8s versions.
The text was updated successfully, but these errors were encountered: