Uploaded image for project: 'OpenShift Java Client'
  1. OpenShift Java Client
  2. OSJC-287

UnsupportedEndpointException: Unable to determine the api endpoint for kind 'Pod'

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8.0.0
    • Fix Version/s: 8.0.1
    • Component/s: core
    • Labels:
      None

      Description

      When I have tried André Dietisheim PR, I have discovered some issues:
      I have tried https://github.com/jbosstools/jbosstools-openshift/blob/master/itests/org.jboss.tools.openshift.ui.bot.test/resources/hello-pod.json to use in OPenShift tooling, but I get an exception:

      !ENTRY org.jboss.tools.openshift.ui 4 -1 2019-07-10 08:15:37.141
      !MESSAGE Unable to determine the api endpoint for kind 'Pod'
      !STACK 0
      com.openshift.restclient.UnsupportedEndpointException: Unable to determine the api endpoint for kind 'Pod'
      at com.openshift.internal.restclient.URLBuilder.buildWithNamespaceInPath(URLBuilder.java:149)
      at com.openshift.internal.restclient.URLBuilder.build(URLBuilder.java:135)
      at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:294)
      at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:275)
      at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:243)
      at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:226)
      at com.openshift.internal.restclient.DefaultClient.create(DefaultClient.java:201)
      at org.jboss.tools.openshift.internal.ui.job.CreateResourceJob$1.visit(CreateResourceJob.java:65)
      at org.jboss.tools.openshift.internal.ui.job.CreateResourceJob$1.visit(CreateResourceJob.java:1)
      at com.openshift.internal.restclient.model.KubernetesResource.accept(KubernetesResource.java:94)
      at org.jboss.tools.openshift.internal.ui.job.CreateResourceJob.loadResource(CreateResourceJob.java:52)
      at org.jboss.tools.openshift.internal.ui.job.CreateResourceJob.doRun(CreateResourceJob.java:47)
      at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      
      

      Something similar happens, when I have tried Route:

      !ENTRY org.jboss.tools.openshift.ui 4 -1 2019-07-10 08:14:56.939
      !MESSAGE Unable to determine the api endpoint for kind 'Route'
      !STACK 0
      com.openshift.restclient.UnsupportedEndpointException: Unable to determine the api endpoint for kind 'Route'
      at com.openshift.internal.restclient.URLBuilder.buildWithNamespaceInPath(URLBuilder.java:149)
      at com.openshift.internal.restclient.URLBuilder.build(URLBuilder.java:135)
      at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:294)
      at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:275)
      at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:243)
      at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:226)
      at com.openshift.internal.restclient.DefaultClient.create(DefaultClient.java:201)
      at org.jboss.tools.openshift.internal.ui.job.CreateResourceJob$1.visit(CreateResourceJob.java:65)
      at org.jboss.tools.openshift.internal.ui.job.CreateResourceJob$1.visit(CreateResourceJob.java:1)
      at com.openshift.internal.restclient.model.KubernetesResource.accept(KubernetesResource.java:94)
      at org.jboss.tools.openshift.internal.ui.job.CreateResourceJob.loadResource(CreateResourceJob.java:52)
      at org.jboss.tools.openshift.internal.ui.job.CreateResourceJob.doRun(CreateResourceJob.java:47)
      at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jeffmaury Jeff MAURY
                Reporter:
                jkopriva Josef Kopriva
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: