redhat-developer / intellij-openshift-connector

IntelliJ OpenShift Toolkit
https://plugins.jetbrains.com/plugin/12030-openshift-toolkit-by-red-hat/
Eclipse Public License 2.0
16 stars 22 forks source link

Can't create project when using crc with microshift preset #733

Open sbouchet opened 3 months ago

sbouchet commented 3 months ago

[kind/bug]

What versions of software are you using?

What did you run exactly?

open openshift view. no current project available. click on create new project or using context menu leads to a popup error.

Actual behavior

error: Could not get projects: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://api.crc.testing:6443/apis/project.openshift.io/v1/projects. Message: Not Found.

Expected behavior

can create project ( as it's an openshift cluster )

Any logs, error output, etc?

sbouchet commented 3 months ago

while debugging, the isOpenshift returns true, so in odocli#getNamespacesOrProjects(), it goes to openshiftclient.projects().list() that returns a 404. in the same method, client.namespaces().list() correctly returns a list

sbouchet commented 3 months ago

see https://github.com/openshift/microshift/issues/1008#issuecomment-1273236517