Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-2292

OCP: Change suggested RHAMT Web UI URL

    XMLWordPrintable

Details

    • Story
    • Resolution: Done
    • Major
    • 4.3.0.Final
    • 4.2.0.Final
    • MTR Operator
    • None
    • Sprint 64, Sprint 65, Sprint 66, Sprint 67

    Description

      The link to open RHAMT Web Ui provided by OCP UI in the right top corner of the Overview page should be the http one until we find a solution for https://issues.jboss.org/browse/WINDUP-2162.

      To "force" OCP to show a specific route, the annotation
      console.alpha.openshift.io/overview-app-route: 'true'
      has to be added to http route definition both in web-template-empty-dir-executor.json and in web-template-empty-dir-executor-shared-storage.json.
      This annotation works only from OCP 3.10+ (ref. isOverviewAppRoute from routes.js)

      Not related to this issue but i want to add a brief summary on how to find out this annotation:

      1. using browser dev tools, it turned out that the link is in a div with an ng-if="overview.routesToDisplayByApp[app] (<div class="overview-routes ng-scope" ng-if="overview.routesToDisplayByApp[app] | size" style="">)
      2. so looking for routesToDisplayByApp in the overview.js, it turned out its value is coming from getRoutesToDisplay function
      3. and this function uses the isOverviewAppRoute from routes.js that evaluates the existence of console.alpha.openshift.io/overview-app-route: true annotation in route definition

      Attachments

        Issue Links

          Activity

            People

              mbrophy Mark Brophy
              mrizzi@redhat.com Marco Rizzi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: