Closed adietish closed 7 months ago
The reason for this is that the code thinks that a cluster, where talking OpenShift to it errors with unauthorized, is an OpenShift cluster. https://github.com/redhat-developer/intellij-common/blob/c9630d81fe209956bb97e7b0be7e5b72ffb09a15/src/main/java/com/redhat/devtools/intellij/common/kubernetes/ClusterHelper.java#L29-L33
try {
return osClient.isSupported();
} catch (KubernetesClientException e) {
return e.getCode() == HttpURLConnection.HTTP_UNAUTHORIZED;
}
This is also causing OIDC tokens not to be refreshed as reported in https://github.com/redhat-developer/intellij-kubernetes/issues/726#issuecomment-2043439106
This is fixed by https://github.com/redhat-developer/intellij-common/issues/216 Closing.
depends on https://github.com/redhat-developer/intellij-common/issues/216
Steps:
Result: Even though my cluster is a kubernetes cluster, the icon that is used is the icon for OpenShift clusters