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

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

      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

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

                Created:
                Updated:
                Resolved: