-
Notifications
You must be signed in to change notification settings - Fork 367
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
OpenShift support will break with OpenShift 4.0. #252
Comments
Actually, is more than just this issue. In the past the Kubernetes REST API endpoints have been available on the same hostname as the OAuth REST API endpoints. This is no longer the case. So the code uses the There are a couple of options to consider.
Option (1) could actually be used if As prior to OpenShift 4.0, OAuth and Kubernetes REST API were one in the same, option (2) above should still work there. Either way, anyone using this with OpenShift 4.0 is going to have to make a change. |
I have worked around this in my fork for now, but it would be great if this could get some attention. Or at least a hint on the preferred way of fixing and I am happy to look into providing a PR. |
The PR is already at: I haven't had a chance to look at tests as been on holiday and only just got back today. My fork/branch with changes is at: You can see how I use it at: |
FWIW, if you have questions how far back some API groups existed and what they looked like, https://github.com/cben/kubernetes-discovery-samples might help (I'll try to add openshift 4.0 there soon) |
#257 was merged |
The current code in
openshift.py
uses:The
oapi
path is old and was only being retained for backward compatibility with older versions.Looks like from OpenShift 4.0 you must use the newer namespaces REST API endpoint.
I'll see if there is a way that which should be used can be auto detected, or switch it to new one but make it configurable if anyone really needs it to work with the much older OpenShift versions.
The text was updated successfully, but these errors were encountered: