Hi Gabe great pointers, exactly what I needed, thanks a lot!
Cheers Andre Am 03.10.19 um 18:44 schrieb Gabe Montero:
On Thu, Oct 3, 2019 at 11:47 AM Andre Dietisheim <[email protected] <mailto:[email protected]>> wrote:Hi Since the endpoint "/version/openshift" is gone, how can a client library identify the OpenShift version it deals with? I believe "/version" still exists, just not "/version/openshift". Here is how the openshift jenkins login plugin does it: https://github.com/openshift/jenkins-openshift-login-plugin/blob/master/src/main/java/org/openshift/jenkins/plugins/openshiftlogin/OpenShiftOAuth2SecurityRealm.java#L640-L678 Here is how `oc` does it: https://github.com/openshift/oc/blob/master/pkg/cli/version/version.go#L109-L172 and https://github.com/openshift/oc/blob/master/vendor/k8s.io/client-go/discovery/discovery_client.go#L407-L418 where you can see it going after /version Thanks for your pointers! Cheers André _______________________________________________ dev mailing list [email protected] <mailto:[email protected]> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
_______________________________________________ dev mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
