intellij-openshift-connector icon indicating copy to clipboard operation
intellij-openshift-connector copied to clipboard

Can't create project when using crc with microshift preset

Open sbouchet opened this issue 1 year ago • 2 comments

[kind/bug]

What versions of software are you using?

  • Operating System: Fedora 39
  • IntelliJ version: 2023.3
  • Extension version: 1.8.0
  • Are you targeting a kubernetes or an Openshift cluster ? If possible, provide its version:
  • crc with microshift preset

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 avatar Mar 04 '24 14:03 sbouchet

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 avatar Mar 04 '24 14:03 sbouchet

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

sbouchet avatar Mar 04 '24 15:03 sbouchet