Closed srueg closed 4 years ago
Hi @srueg
this sounds very likely. Maybe there were additional changes introduced in 4.4 that cause this. @jeffmaury, do you know?
Yes I would think the mapping is not up to date. Will test
There is a workaround if you're interested: add a k8stypes.properties
file in your classpath with the following content:
com.openshift.internal.restclient.model.authorization.RoleBinding=rbac.authorization.k8s.io/v1.RoleBinding
Fix is coming
Thanks a lot, I'll give it a try 👍
I get an exception while getting RoleBindings from an OpenShift 4.4 cluster:
Maybe this is due to the new resource version lookup algorithm introduced in https://github.com/openshift/openshift-restclient-java/commit/4f5b2e41afd3e1f904b694bf13d5d3ccdc25ebc1 ? It seems like the library gets the
rbac.authorization.k8s.io/v1
version of RoleBindings instead ofauthorization.openshift.io/v1
which in turn can't be casted to the RoleBinding type.(I'm using version 9.0.0.Final)