Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-3337

When defining more then one proxy in dynamic plugin, only the last one works

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • None
    • openshift-4.12
    • Dynamic Plugins
    • None

    Description

      when defining two proxy endpoints, 
      apiVersion: console.openshift.io/v1alpha1
      kind: ConsolePlugin
      metadata:
      ...
      name: forklift-console-plugin
      spec:
      displayName: Console Plugin Template
      proxy:

      • alias: forklift-inventory
        authorize: true
        service:
        name: forklift-inventory
        namespace: konveyor-forklift
        port: 8443
        type: Service
      • alias: forklift-must-gather-api
        authorize: true
        service:
        name: forklift-must-gather-api
        namespace: konveyor-forklift
        port: 8443
        type: Service

      service:
      basePath: /
      I get two proxy endpoints
      /api/proxy/plugin/forklift-console-plugin/forklift-inventory
      and
      /api/proxy/plugin/forklift-console-plugin/forklift-must-gather-api

      but both proxy to the `forklift-must-gather-api` service

      e.g.
      curl to:
      [server url]/api/proxy/plugin/forklift-console-plugin/forklift-inventory
      will point to the `forklift-must-gather-api` service, instead of the `forklift-inventory` service

      Attachments

        Activity

          People

            jhadvig@redhat.com Jakub Hadvig
            yzamir@redhat.com Yaacov Zamir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: