We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9630d8 commit e3a0421Copy full SHA for e3a0421
src/main/java/com/redhat/devtools/intellij/common/kubernetes/ClusterHelper.java
@@ -25,12 +25,7 @@ private ClusterHelper() {
25
}
26
27
public static boolean isOpenShift(KubernetesClient client) {
28
- OpenShiftClient osClient = client.adapt(OpenShiftClient.class);
29
- try {
30
- return osClient.isSupported();
31
- } catch (KubernetesClientException e) {
32
- return e.getCode() == HttpURLConnection.HTTP_UNAUTHORIZED;
33
- }
+ return client.hasApiGroup(OpenShiftClient.BASE_API_GROUP, false);
34
35
36
public static ClusterInfo getClusterInfo(KubernetesClient client) {
0 commit comments